2019-12-16 14:35:22 -04:00
|
|
|
name: Tests
|
|
|
|
|
2022-04-10 19:03:27 -03:00
|
|
|
# gh-84728: "paths-ignore" is not used to skip documentation-only PRs, because
|
2020-05-07 17:42:14 -03:00
|
|
|
# it prevents to mark a job as mandatory. A PR cannot be merged if a job is
|
|
|
|
# mandatory but not scheduled because of "paths-ignore".
|
2019-12-16 14:35:22 -04:00
|
|
|
on:
|
2021-10-21 17:34:18 -03:00
|
|
|
workflow_dispatch:
|
2019-12-16 15:15:08 -04:00
|
|
|
push:
|
|
|
|
branches:
|
2021-05-19 12:14:37 -03:00
|
|
|
- 'main'
|
2022-05-08 00:01:20 -03:00
|
|
|
- '3.11'
|
2021-05-19 12:14:37 -03:00
|
|
|
- '3.10'
|
|
|
|
- '3.9'
|
|
|
|
- '3.8'
|
|
|
|
- '3.7'
|
2019-12-16 14:35:22 -04:00
|
|
|
pull_request:
|
|
|
|
branches:
|
2021-05-19 12:14:37 -03:00
|
|
|
- 'main'
|
2022-05-08 00:01:20 -03:00
|
|
|
- '3.11'
|
2021-05-19 12:14:37 -03:00
|
|
|
- '3.10'
|
|
|
|
- '3.9'
|
|
|
|
- '3.8'
|
|
|
|
- '3.7'
|
2019-12-16 14:35:22 -04:00
|
|
|
|
2022-05-21 04:55:21 -03:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2022-10-08 16:21:38 -03:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2019-12-16 14:35:22 -04:00
|
|
|
jobs:
|
2020-05-14 19:11:40 -03:00
|
|
|
check_source:
|
|
|
|
name: 'Check for source changes'
|
|
|
|
runs-on: ubuntu-latest
|
2023-04-14 06:01:10 -03:00
|
|
|
timeout-minutes: 10
|
2020-05-14 19:11:40 -03:00
|
|
|
outputs:
|
|
|
|
run_tests: ${{ steps.check.outputs.run_tests }}
|
|
|
|
steps:
|
2022-04-20 00:50:07 -03:00
|
|
|
- uses: actions/checkout@v3
|
2020-05-14 19:11:40 -03:00
|
|
|
- name: Check for source changes
|
|
|
|
id: check
|
|
|
|
run: |
|
2020-12-30 10:53:58 -04:00
|
|
|
if [ -z "$GITHUB_BASE_REF" ]; then
|
2022-10-23 02:23:40 -03:00
|
|
|
echo "run_tests=true" >> $GITHUB_OUTPUT
|
2020-05-14 19:11:40 -03:00
|
|
|
else
|
|
|
|
git fetch origin $GITHUB_BASE_REF --depth=1
|
2020-08-10 13:36:59 -03:00
|
|
|
# git diff "origin/$GITHUB_BASE_REF..." (3 dots) may be more
|
|
|
|
# reliable than git diff "origin/$GITHUB_BASE_REF.." (2 dots),
|
|
|
|
# but it requires to download more commits (this job uses
|
|
|
|
# "git fetch --depth=1").
|
|
|
|
#
|
|
|
|
# git diff "origin/$GITHUB_BASE_REF..." (3 dots) works with Git
|
|
|
|
# 2.26, but Git 2.28 is stricter and fails with "no merge base".
|
|
|
|
#
|
|
|
|
# git diff "origin/$GITHUB_BASE_REF.." (2 dots) should be enough on
|
|
|
|
# GitHub, since GitHub starts by merging origin/$GITHUB_BASE_REF
|
|
|
|
# into the PR branch anyway.
|
|
|
|
#
|
|
|
|
# https://github.com/python/core-workflow/issues/373
|
2022-10-23 02:23:40 -03:00
|
|
|
git diff --name-only origin/$GITHUB_BASE_REF.. | grep -qvE '(\.rst$|^Doc|^Misc)' && echo "run_tests=true" >> $GITHUB_OUTPUT || true
|
2020-05-14 19:11:40 -03:00
|
|
|
fi
|
2020-11-20 10:14:16 -04:00
|
|
|
|
|
|
|
check_generated_files:
|
|
|
|
name: 'Check if generated files are up to date'
|
|
|
|
runs-on: ubuntu-latest
|
2023-04-14 06:01:10 -03:00
|
|
|
timeout-minutes: 60
|
2020-11-20 10:14:16 -04:00
|
|
|
needs: check_source
|
|
|
|
if: needs.check_source.outputs.run_tests == 'true'
|
|
|
|
steps:
|
2022-04-20 00:50:07 -03:00
|
|
|
- uses: actions/checkout@v3
|
2022-04-19 17:03:58 -03:00
|
|
|
- uses: actions/setup-python@v3
|
2020-11-20 10:14:16 -04:00
|
|
|
- name: Install Dependencies
|
|
|
|
run: sudo ./.github/workflows/posix-deps-apt.sh
|
2021-12-06 08:18:56 -04:00
|
|
|
- name: Add ccache to PATH
|
|
|
|
run: echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
|
|
|
- name: Configure ccache action
|
2022-10-11 10:15:14 -03:00
|
|
|
uses: hendrikmuhs/ccache-action@v1.2
|
2021-12-06 08:18:56 -04:00
|
|
|
- name: Check Autoconf version 2.69 and aclocal 1.16.3
|
|
|
|
run: |
|
|
|
|
grep "Generated by GNU Autoconf 2.69" configure
|
|
|
|
grep "aclocal 1.16.3" aclocal.m4
|
|
|
|
grep -q "runstatedir" configure
|
|
|
|
grep -q "PKG_PROG_PKG_CONFIG" aclocal.m4
|
2022-03-10 13:03:27 -04:00
|
|
|
- name: Configure CPython
|
2020-11-20 10:14:16 -04:00
|
|
|
run: |
|
2020-11-24 08:38:08 -04:00
|
|
|
# Build Python with the libpython dynamic library
|
|
|
|
./configure --with-pydebug --enable-shared
|
2022-03-10 13:03:27 -04:00
|
|
|
- name: Regenerate autoconf files with container image
|
|
|
|
run: make regen-configure
|
|
|
|
- name: Build CPython
|
|
|
|
run: |
|
2022-03-31 17:29:52 -03:00
|
|
|
# Deepfreeze will usually cause global objects to be added or removed,
|
|
|
|
# so we run it before regen-global-objects gets rum (in regen-all).
|
|
|
|
make regen-deepfreeze
|
2020-11-20 10:14:16 -04:00
|
|
|
make -j4 regen-all
|
2021-01-25 18:12:50 -04:00
|
|
|
make regen-stdlib-module-names
|
2020-11-20 10:14:16 -04:00
|
|
|
- name: Check for changes
|
|
|
|
run: |
|
2021-08-30 20:25:11 -03:00
|
|
|
git add -u
|
2020-11-20 10:14:16 -04:00
|
|
|
changes=$(git status --porcelain)
|
|
|
|
# Check for changes in regenerated files
|
2021-12-06 08:18:56 -04:00
|
|
|
if test -n "$changes"; then
|
|
|
|
echo "Generated files not up to date."
|
|
|
|
echo "Perhaps you forgot to run make regen-all or build.bat --regen. ;)"
|
2021-12-17 11:17:56 -04:00
|
|
|
echo "configure files must be regenerated with a specific version of autoconf."
|
2020-11-20 10:14:16 -04:00
|
|
|
echo "$changes"
|
2021-12-17 11:17:56 -04:00
|
|
|
echo ""
|
|
|
|
git diff --staged || true
|
2020-11-20 10:14:16 -04:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
- name: Check exported libpython symbols
|
|
|
|
run: make smelly
|
2020-12-04 18:05:58 -04:00
|
|
|
- name: Check limited ABI symbols
|
|
|
|
run: make check-limited-abi
|
2023-03-14 13:05:54 -03:00
|
|
|
- name: Check for unsupported C global variables
|
|
|
|
if: github.event_name == 'pull_request' # $GITHUB_EVENT_NAME
|
|
|
|
run: make check-c-globals
|
2020-11-20 10:14:16 -04:00
|
|
|
|
2019-12-16 14:35:22 -04:00
|
|
|
build_win32:
|
|
|
|
name: 'Windows (x86)'
|
|
|
|
runs-on: windows-latest
|
2023-04-14 06:01:10 -03:00
|
|
|
timeout-minutes: 60
|
2020-05-14 19:11:40 -03:00
|
|
|
needs: check_source
|
|
|
|
if: needs.check_source.outputs.run_tests == 'true'
|
2021-11-24 16:12:12 -04:00
|
|
|
env:
|
|
|
|
IncludeUwp: 'true'
|
2019-12-16 14:35:22 -04:00
|
|
|
steps:
|
2022-04-20 00:50:07 -03:00
|
|
|
- uses: actions/checkout@v3
|
2019-12-16 14:35:22 -04:00
|
|
|
- name: Build CPython
|
2022-03-18 14:19:28 -03:00
|
|
|
run: .\PCbuild\build.bat -e -d -p Win32
|
2019-12-16 14:35:22 -04:00
|
|
|
- name: Display build info
|
|
|
|
run: .\python.bat -m test.pythoninfo
|
|
|
|
- name: Tests
|
2022-03-18 14:19:28 -03:00
|
|
|
run: .\PCbuild\rt.bat -p Win32 -d -q -uall -u-cpu -rwW --slowest --timeout=1200 -j0
|
2019-12-16 14:35:22 -04:00
|
|
|
|
|
|
|
build_win_amd64:
|
|
|
|
name: 'Windows (x64)'
|
|
|
|
runs-on: windows-latest
|
2023-04-14 06:01:10 -03:00
|
|
|
timeout-minutes: 60
|
2020-05-14 19:11:40 -03:00
|
|
|
needs: check_source
|
|
|
|
if: needs.check_source.outputs.run_tests == 'true'
|
2021-11-24 16:12:12 -04:00
|
|
|
env:
|
|
|
|
IncludeUwp: 'true'
|
2019-12-16 14:35:22 -04:00
|
|
|
steps:
|
2022-04-20 00:50:07 -03:00
|
|
|
- uses: actions/checkout@v3
|
2020-12-28 14:28:40 -04:00
|
|
|
- name: Register MSVC problem matcher
|
|
|
|
run: echo "::add-matcher::.github/problem-matchers/msvc.json"
|
2019-12-16 14:35:22 -04:00
|
|
|
- name: Build CPython
|
2022-03-18 14:19:28 -03:00
|
|
|
run: .\PCbuild\build.bat -e -d -p x64
|
2019-12-16 14:35:22 -04:00
|
|
|
- name: Display build info
|
|
|
|
run: .\python.bat -m test.pythoninfo
|
|
|
|
- name: Tests
|
2022-03-18 14:19:28 -03:00
|
|
|
run: .\PCbuild\rt.bat -p x64 -d -q -uall -u-cpu -rwW --slowest --timeout=1200 -j0
|
2019-12-16 14:35:22 -04:00
|
|
|
|
|
|
|
build_macos:
|
|
|
|
name: 'macOS'
|
|
|
|
runs-on: macos-latest
|
2023-04-14 06:01:10 -03:00
|
|
|
timeout-minutes: 60
|
2020-05-14 19:11:40 -03:00
|
|
|
needs: check_source
|
|
|
|
if: needs.check_source.outputs.run_tests == 'true'
|
2021-07-30 11:21:09 -03:00
|
|
|
env:
|
2023-02-20 11:20:18 -04:00
|
|
|
HOMEBREW_NO_ANALYTICS: 1
|
|
|
|
HOMEBREW_NO_AUTO_UPDATE: 1
|
|
|
|
HOMEBREW_NO_INSTALL_CLEANUP: 1
|
2021-07-30 11:21:09 -03:00
|
|
|
PYTHONSTRICTEXTENSIONBUILD: 1
|
2019-12-16 14:35:22 -04:00
|
|
|
steps:
|
2022-04-20 00:50:07 -03:00
|
|
|
- uses: actions/checkout@v3
|
2023-02-20 09:07:25 -04:00
|
|
|
- name: Install Homebrew dependencies
|
|
|
|
run: brew install pkg-config openssl@1.1 xz gdbm tcl-tk
|
2019-12-16 14:35:22 -04:00
|
|
|
- name: Configure CPython
|
2023-02-20 09:07:25 -04:00
|
|
|
run: |
|
2023-02-23 11:02:23 -04:00
|
|
|
CFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \
|
|
|
|
LDFLAGS="-L$(brew --prefix gdbm)/lib -I$(brew --prefix xz)/lib" \
|
|
|
|
PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig" \
|
2023-02-20 09:07:25 -04:00
|
|
|
./configure \
|
|
|
|
--with-pydebug \
|
|
|
|
--prefix=/opt/python-dev \
|
|
|
|
--with-openssl="$(brew --prefix openssl@1.1)"
|
2019-12-16 14:35:22 -04:00
|
|
|
- name: Build CPython
|
2020-02-26 15:21:41 -04:00
|
|
|
run: make -j4
|
2019-12-16 14:35:22 -04:00
|
|
|
- name: Display build info
|
|
|
|
run: make pythoninfo
|
|
|
|
- name: Tests
|
|
|
|
run: make buildbottest TESTOPTS="-j4 -uall,-cpu"
|
|
|
|
|
|
|
|
build_ubuntu:
|
|
|
|
name: 'Ubuntu'
|
2021-03-18 19:06:50 -03:00
|
|
|
runs-on: ubuntu-20.04
|
2023-04-14 06:01:10 -03:00
|
|
|
timeout-minutes: 60
|
2020-05-14 19:11:40 -03:00
|
|
|
needs: check_source
|
|
|
|
if: needs.check_source.outputs.run_tests == 'true'
|
2019-12-16 14:35:22 -04:00
|
|
|
env:
|
2023-02-09 13:40:51 -04:00
|
|
|
OPENSSL_VER: 1.1.1t
|
2021-07-30 11:21:09 -03:00
|
|
|
PYTHONSTRICTEXTENSIONBUILD: 1
|
2019-12-16 14:35:22 -04:00
|
|
|
steps:
|
2022-04-20 00:50:07 -03:00
|
|
|
- uses: actions/checkout@v3
|
2020-06-06 08:21:46 -03:00
|
|
|
- name: Register gcc problem matcher
|
|
|
|
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
|
2019-12-16 14:35:22 -04:00
|
|
|
- name: Install Dependencies
|
|
|
|
run: sudo ./.github/workflows/posix-deps-apt.sh
|
2021-04-13 14:23:45 -03:00
|
|
|
- name: Configure OpenSSL env vars
|
|
|
|
run: |
|
|
|
|
echo "MULTISSL_DIR=${GITHUB_WORKSPACE}/multissl" >> $GITHUB_ENV
|
|
|
|
echo "OPENSSL_DIR=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}" >> $GITHUB_ENV
|
|
|
|
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
|
2019-12-16 14:35:22 -04:00
|
|
|
- name: 'Restore OpenSSL build'
|
|
|
|
id: cache-openssl
|
2022-05-03 09:33:03 -03:00
|
|
|
uses: actions/cache@v3
|
2019-12-16 14:35:22 -04:00
|
|
|
with:
|
|
|
|
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
|
|
|
|
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
|
|
|
|
- name: Install OpenSSL
|
|
|
|
if: steps.cache-openssl.outputs.cache-hit != 'true'
|
2021-04-13 14:23:45 -03:00
|
|
|
run: python3 Tools/ssl/multissltests.py --steps=library --base-directory $MULTISSL_DIR --openssl $OPENSSL_VER --system Linux
|
|
|
|
- name: Add ccache to PATH
|
|
|
|
run: |
|
|
|
|
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
|
|
|
- name: Configure ccache action
|
2022-10-11 10:15:14 -03:00
|
|
|
uses: hendrikmuhs/ccache-action@v1.2
|
2021-12-04 06:07:59 -04:00
|
|
|
- name: Setup directory envs for out-of-tree builds
|
|
|
|
run: |
|
|
|
|
echo "CPYTHON_RO_SRCDIR=$(realpath -m ${GITHUB_WORKSPACE}/../cpython-ro-srcdir)" >> $GITHUB_ENV
|
|
|
|
echo "CPYTHON_BUILDDIR=$(realpath -m ${GITHUB_WORKSPACE}/../cpython-builddir)" >> $GITHUB_ENV
|
|
|
|
- name: Create directories for read-only out-of-tree builds
|
|
|
|
run: mkdir -p $CPYTHON_RO_SRCDIR $CPYTHON_BUILDDIR
|
|
|
|
- name: Bind mount sources read-only
|
|
|
|
run: sudo mount --bind -o ro $GITHUB_WORKSPACE $CPYTHON_RO_SRCDIR
|
|
|
|
- name: Configure CPython out-of-tree
|
|
|
|
working-directory: ${{ env.CPYTHON_BUILDDIR }}
|
|
|
|
run: ../cpython-ro-srcdir/configure --with-pydebug --with-openssl=$OPENSSL_DIR
|
|
|
|
- name: Build CPython out-of-tree
|
|
|
|
working-directory: ${{ env.CPYTHON_BUILDDIR }}
|
2020-02-26 15:21:41 -04:00
|
|
|
run: make -j4
|
2019-12-16 14:35:22 -04:00
|
|
|
- name: Display build info
|
2021-12-04 06:07:59 -04:00
|
|
|
working-directory: ${{ env.CPYTHON_BUILDDIR }}
|
2019-12-16 14:35:22 -04:00
|
|
|
run: make pythoninfo
|
2021-12-04 06:07:59 -04:00
|
|
|
- name: Remount sources writable for tests
|
|
|
|
# some tests write to srcdir, lack of pyc files slows down testing
|
|
|
|
run: sudo mount $CPYTHON_RO_SRCDIR -oremount,rw
|
2019-12-16 14:35:22 -04:00
|
|
|
- name: Tests
|
2021-12-04 06:07:59 -04:00
|
|
|
working-directory: ${{ env.CPYTHON_BUILDDIR }}
|
2019-12-16 14:35:22 -04:00
|
|
|
run: xvfb-run make buildbottest TESTOPTS="-j4 -uall,-cpu"
|
2021-04-13 14:23:45 -03:00
|
|
|
|
|
|
|
build_ubuntu_ssltests:
|
2021-05-01 19:02:30 -03:00
|
|
|
name: 'Ubuntu SSL tests with OpenSSL'
|
2021-04-13 14:23:45 -03:00
|
|
|
runs-on: ubuntu-20.04
|
2023-04-14 06:01:10 -03:00
|
|
|
timeout-minutes: 60
|
2021-04-13 14:23:45 -03:00
|
|
|
needs: check_source
|
2022-10-07 15:58:46 -03:00
|
|
|
if: needs.check_source.outputs.run_tests == 'true'
|
2021-04-13 14:23:45 -03:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2023-02-09 13:40:51 -04:00
|
|
|
openssl_ver: [1.1.1t, 3.0.8, 3.1.0-beta1]
|
2021-04-13 14:23:45 -03:00
|
|
|
env:
|
|
|
|
OPENSSL_VER: ${{ matrix.openssl_ver }}
|
|
|
|
MULTISSL_DIR: ${{ github.workspace }}/multissl
|
|
|
|
OPENSSL_DIR: ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}
|
|
|
|
LD_LIBRARY_PATH: ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}/lib
|
|
|
|
steps:
|
2022-04-20 00:50:07 -03:00
|
|
|
- uses: actions/checkout@v3
|
2021-04-13 14:23:45 -03:00
|
|
|
- name: Register gcc problem matcher
|
|
|
|
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: sudo ./.github/workflows/posix-deps-apt.sh
|
|
|
|
- name: Configure OpenSSL env vars
|
|
|
|
run: |
|
|
|
|
echo "MULTISSL_DIR=${GITHUB_WORKSPACE}/multissl" >> $GITHUB_ENV
|
|
|
|
echo "OPENSSL_DIR=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}" >> $GITHUB_ENV
|
|
|
|
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
|
|
|
|
- name: 'Restore OpenSSL build'
|
|
|
|
id: cache-openssl
|
2022-05-03 09:33:03 -03:00
|
|
|
uses: actions/cache@v3
|
2021-04-13 14:23:45 -03:00
|
|
|
with:
|
|
|
|
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
|
|
|
|
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
|
|
|
|
- name: Install OpenSSL
|
|
|
|
if: steps.cache-openssl.outputs.cache-hit != 'true'
|
|
|
|
run: python3 Tools/ssl/multissltests.py --steps=library --base-directory $MULTISSL_DIR --openssl $OPENSSL_VER --system Linux
|
|
|
|
- name: Add ccache to PATH
|
|
|
|
run: |
|
|
|
|
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
|
|
|
- name: Configure ccache action
|
2022-10-11 10:15:14 -03:00
|
|
|
uses: hendrikmuhs/ccache-action@v1.2
|
2021-04-13 14:23:45 -03:00
|
|
|
- name: Configure CPython
|
|
|
|
run: ./configure --with-pydebug --with-openssl=$OPENSSL_DIR
|
|
|
|
- name: Build CPython
|
|
|
|
run: make -j4
|
|
|
|
- name: Display build info
|
|
|
|
run: make pythoninfo
|
|
|
|
- name: SSL tests
|
|
|
|
run: ./python Lib/test/ssltests.py
|
2021-06-10 14:47:53 -03:00
|
|
|
|
|
|
|
|
|
|
|
build_asan:
|
|
|
|
name: 'Address sanitizer'
|
|
|
|
runs-on: ubuntu-20.04
|
2023-04-14 06:01:10 -03:00
|
|
|
timeout-minutes: 60
|
2021-06-10 14:47:53 -03:00
|
|
|
needs: check_source
|
|
|
|
if: needs.check_source.outputs.run_tests == 'true'
|
|
|
|
env:
|
2023-02-09 13:40:51 -04:00
|
|
|
OPENSSL_VER: 1.1.1t
|
2021-07-30 11:21:09 -03:00
|
|
|
PYTHONSTRICTEXTENSIONBUILD: 1
|
2021-06-10 14:47:53 -03:00
|
|
|
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
|
|
|
|
steps:
|
2022-04-20 00:50:07 -03:00
|
|
|
- uses: actions/checkout@v3
|
2021-06-10 14:47:53 -03:00
|
|
|
- name: Register gcc problem matcher
|
|
|
|
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: sudo ./.github/workflows/posix-deps-apt.sh
|
2023-04-25 09:13:36 -03:00
|
|
|
- name: Set up GCC-10 for ASAN
|
|
|
|
uses: egor-tensin/setup-gcc@v1
|
|
|
|
with:
|
|
|
|
version: 10
|
2021-06-10 14:47:53 -03:00
|
|
|
- name: Configure OpenSSL env vars
|
|
|
|
run: |
|
|
|
|
echo "MULTISSL_DIR=${GITHUB_WORKSPACE}/multissl" >> $GITHUB_ENV
|
|
|
|
echo "OPENSSL_DIR=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}" >> $GITHUB_ENV
|
|
|
|
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
|
|
|
|
- name: 'Restore OpenSSL build'
|
|
|
|
id: cache-openssl
|
2022-05-03 09:33:03 -03:00
|
|
|
uses: actions/cache@v3
|
2021-06-10 14:47:53 -03:00
|
|
|
with:
|
|
|
|
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
|
|
|
|
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
|
|
|
|
- name: Install OpenSSL
|
|
|
|
if: steps.cache-openssl.outputs.cache-hit != 'true'
|
|
|
|
run: python3 Tools/ssl/multissltests.py --steps=library --base-directory $MULTISSL_DIR --openssl $OPENSSL_VER --system Linux
|
|
|
|
- name: Add ccache to PATH
|
|
|
|
run: |
|
|
|
|
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
|
|
|
- name: Configure ccache action
|
2022-10-11 10:15:14 -03:00
|
|
|
uses: hendrikmuhs/ccache-action@v1.2
|
2021-06-10 14:47:53 -03:00
|
|
|
- name: Configure CPython
|
|
|
|
run: ./configure --with-address-sanitizer --without-pymalloc
|
|
|
|
- name: Build CPython
|
|
|
|
run: make -j4
|
|
|
|
- name: Display build info
|
|
|
|
run: make pythoninfo
|
|
|
|
- name: Tests
|
2022-03-01 10:44:08 -04:00
|
|
|
run: xvfb-run make buildbottest TESTOPTS="-j4 -uall,-cpu"
|