skip more tests #809
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: [push, pull_request, workflow_dispatch] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.runner }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| msystem: ['MINGW64','MINGW32','UCRT64','CLANG64','CLANGARM64'] | |
| include: | |
| - msystem: MINGW64 | |
| prefix: mingw-w64-x86_64 | |
| runner: windows-2022 | |
| - msystem: MINGW32 | |
| prefix: mingw-w64-i686 | |
| runner: windows-2022 | |
| - msystem: UCRT64 | |
| prefix: mingw-w64-ucrt-x86_64 | |
| runner: windows-2022 | |
| - msystem: CLANG64 | |
| prefix: mingw-w64-clang-x86_64 | |
| runner: windows-2022 | |
| - msystem: CLANGARM64 | |
| prefix: mingw-w64-clang-aarch64 | |
| runner: windows-11-arm | |
| steps: | |
| - name: Setup git | |
| run: | | |
| git config --global core.autocrlf false | |
| git config --global core.eol lf | |
| - uses: actions/checkout@v4 | |
| - uses: msys2/setup-msys2@v2 | |
| with: | |
| msystem: ${{ matrix.msystem }} | |
| release: ${{ matrix.msystem == 'CLANGARM64' }} | |
| update: true | |
| install: >- | |
| make | |
| binutils | |
| autoconf | |
| autoconf-archive | |
| automake-wrapper | |
| tar | |
| gzip | |
| ${{ matrix.prefix }}-toolchain | |
| ${{ matrix.prefix }}-expat | |
| ${{ matrix.prefix }}-bzip2 | |
| ${{ matrix.prefix }}-libb2 | |
| ${{ matrix.prefix }}-libffi | |
| ${{ matrix.prefix }}-mpdecimal | |
| ${{ matrix.prefix }}-ncurses | |
| ${{ matrix.prefix }}-openssl | |
| ${{ matrix.prefix }}-sqlite3 | |
| ${{ matrix.prefix }}-tcl | |
| ${{ matrix.prefix }}-tk | |
| ${{ matrix.prefix }}-zlib | |
| ${{ matrix.prefix }}-xz | |
| ${{ matrix.prefix }}-tzdata | |
| - name: Build Python | |
| shell: msys2 {0} | |
| run: | | |
| set -ex | |
| if [[ "${{ matrix.msystem }}" == CLANG* ]]; then | |
| export CC=clang | |
| export CXX=clang++ | |
| fi | |
| autoreconf -vfi | |
| rm -Rf _build && mkdir _build && cd _build | |
| ../configure \ | |
| --prefix=${MINGW_PREFIX} \ | |
| --host=${MINGW_CHOST} \ | |
| --build=${MINGW_CHOST} \ | |
| --enable-shared \ | |
| --with-system-expat \ | |
| --with-system-libmpdec \ | |
| --without-ensurepip \ | |
| --without-remote-debug \ | |
| --enable-loadable-sqlite-extensions \ | |
| --with-tzpath=${MINGW_PREFIX}/share/zoneinfo \ | |
| --enable-optimizations | |
| make -j8 | |
| - name: Run Smoke Test (build) | |
| shell: msys2 {0} | |
| run: | | |
| SMOKETESTS="$(pwd)/mingw_smoketests.py" | |
| cd _build | |
| ./python.exe "$SMOKETESTS" | |
| MSYSTEM= ./python.exe "$SMOKETESTS" | |
| - name: Run tests | |
| shell: msys2 {0} | |
| run: | | |
| IGNOREFILE="$(pwd)/mingw_ignorefile.txt" | |
| IGNOREFILE_EXTRA="$IGNOREFILE" | |
| if [[ "${{ matrix.msystem }}" == "MINGW32" ]] || [[ "${{ matrix.msystem }}" == "MINGW64" ]]; then | |
| IGNOREFILE_EXTRA="$(pwd)/mingw_ignorefile_msvcrt.txt" | |
| fi | |
| cd _build | |
| MSYSTEM= ./python.exe -m test -j8 --ignorefile "$IGNOREFILE" --ignorefile "$IGNOREFILE_EXTRA" -W | |
| - name: Run broken tests | |
| continue-on-error: true | |
| shell: msys2 {0} | |
| run: | | |
| IGNOREFILE="$(pwd)/mingw_ignorefile.txt" | |
| IGNOREFILE_EXTRA="$IGNOREFILE" | |
| if [[ "${{ matrix.msystem }}" == "MINGW32" ]] || [[ "${{ matrix.msystem }}" == "MINGW64" ]]; then | |
| IGNOREFILE_EXTRA="$(pwd)/mingw_ignorefile_msvcrt.txt" | |
| fi | |
| cd _build | |
| MSYSTEM= ./python.exe -m test -j8 --matchfile "$IGNOREFILE" --matchfile "$IGNOREFILE_EXTRA" -W | |
| - name: Install | |
| shell: msys2 {0} | |
| run: | | |
| set -ex | |
| cd _build | |
| pkgdir=python_pkgdir | |
| make -j1 install DESTDIR="${pkgdir}" | |
| # Fix shebangs | |
| _pybasever=$(./python.exe -c "import sys; print(f'{sys.version_info[0]}.{sys.version_info[1]}');") | |
| for fscripts in idle3 idle${_pybasever} pydoc3 pydoc${_pybasever}; do | |
| sed -i "s|$(cygpath -w ${MINGW_PREFIX} | sed 's|\\|\\\\|g')/bin/python${_pybasever}.exe|/usr/bin/env python${_pybasever}.exe|g" "${pkgdir}${MINGW_PREFIX}"/bin/${fscripts} | |
| done | |
| sed -i "s|#!${MINGW_PREFIX}/bin/python${_pybasever}.exe|#!/usr/bin/env python${_pybasever}.exe|" "${pkgdir}${MINGW_PREFIX}"/lib/python${_pybasever}/config-${_pybasever}/python-config.py | |
| # Create version-less aliases | |
| cp "${pkgdir}${MINGW_PREFIX}"/bin/python3.exe "${pkgdir}${MINGW_PREFIX}"/bin/python.exe | |
| cp "${pkgdir}${MINGW_PREFIX}"/bin/python3w.exe "${pkgdir}${MINGW_PREFIX}"/bin/pythonw.exe | |
| cp "${pkgdir}${MINGW_PREFIX}"/bin/python3-config "${pkgdir}${MINGW_PREFIX}"/bin/python-config | |
| cp "${pkgdir}${MINGW_PREFIX}"/bin/idle3 "${pkgdir}${MINGW_PREFIX}"/bin/idle | |
| cp "${pkgdir}${MINGW_PREFIX}"/bin/pydoc3 "${pkgdir}${MINGW_PREFIX}"/bin/pydoc | |
| # copy to / | |
| cp -rf "${pkgdir}"/* / | |
| - name: Run Smoke Test (installed) | |
| shell: msys2 {0} | |
| run: | | |
| SMOKETESTS="$(pwd)/mingw_smoketests.py" | |
| ${MINGW_PREFIX}/bin/python.exe "$SMOKETESTS" | |
| MSYSTEM= ${MINGW_PREFIX}/bin/python.exe "$SMOKETESTS" | |
| - name: Compress | |
| if: always() | |
| shell: msys2 {0} | |
| run: | | |
| cd _build | |
| tar -zcf python.tar.gz python_pkgdir/ | |
| - name: Upload | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: build-${{ matrix.msystem }} | |
| path: _build/python.tar.gz | |
| cross-gcc-x86_64: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ubuntu:25.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install deps | |
| run: | | |
| apt-get update | |
| DEBIAN_FRONTEND=noninteractive apt-get install -y \ | |
| gcc-mingw-w64-x86-64 \ | |
| g++-mingw-w64-x86-64 \ | |
| autoconf-archive \ | |
| autoconf \ | |
| automake \ | |
| zip \ | |
| make \ | |
| pkg-config \ | |
| git \ | |
| libtool | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.14' | |
| - name: Check Python Version | |
| run: | | |
| which python | |
| python --version | |
| - name: Build | |
| run: | | |
| DESTDIR=$(pwd)/_install | |
| PREFIX=/myprefix | |
| HOST=x86_64-w64-mingw32 | |
| BUILD=x86_64-pc-linux-gnu | |
| export PKG_CONFIG_SYSROOT_DIR=$DESTDIR | |
| export PKG_CONFIG_LIBDIR=$DESTDIR$PREFIX/lib/pkgconfig | |
| unset PKG_CONFIG_PATH | |
| # build libffi | |
| git clone https://github.com/libffi/libffi.git _libffi | |
| cd _libffi | |
| git checkout v3.4.7 | |
| autoreconf -vfi | |
| cd .. | |
| mkdir _libffi_build && cd _libffi_build | |
| ../_libffi/configure \ | |
| --host="$HOST" \ | |
| --prefix="$PREFIX" \ | |
| --build="$BUILD" \ | |
| --disable-symvers \ | |
| --disable-docs | |
| make -j8 | |
| DESTDIR="$DESTDIR" make install | |
| cd .. | |
| # build python | |
| autoreconf -vfi | |
| mkdir _build && cd _build | |
| ../configure \ | |
| --host="$HOST" \ | |
| --build="$BUILD" \ | |
| --prefix="$PREFIX" \ | |
| --enable-shared \ | |
| --without-ensurepip \ | |
| --without-remote-debug \ | |
| --enable-loadable-sqlite-extensions \ | |
| --with-build-python=yes | |
| make -j8 | |
| make install DESTDIR="$DESTDIR" | |
| # copy toolchain dlls | |
| cp "$("$HOST-gcc" -print-file-name=libgcc_s_seh-1.dll)" $DESTDIR$PREFIX/bin | |
| cp "$("$HOST-gcc" -print-file-name=libstdc++-6.dll)" $DESTDIR$PREFIX/bin | |
| - name: 'Zip files' | |
| run: | | |
| zip -r install.zip _install | |
| - name: Upload | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-cross-gcc-x86_64 | |
| path: install.zip | |
| cross-gcc-x86_64-test: | |
| needs: [cross-gcc-x86_64] | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: build-cross-gcc-x86_64 | |
| - name: 'Run tests' | |
| run: | | |
| 7z x install.zip | |
| ./_install/myprefix/bin/python3.exe -c "import sysconfig, pprint; pprint.pprint(sysconfig.get_config_vars())" | |
| ./_install/myprefix/bin/python3.exe -c "import ctypes; print(ctypes)" | |
| ./_install/myprefix/bin/python3.exe -c "import _wmi; print(_wmi)" | |
| cross-llvm-mingw: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: mstorsjo/llvm-mingw:latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| arch: ['x86_64', 'i686', 'aarch64', 'armv7'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install deps | |
| run: | | |
| export DEBIAN_FRONTEND=noninteractive | |
| apt-get update -qq | |
| apt-get install -qqy software-properties-common | |
| add-apt-repository --yes ppa:deadsnakes/ppa | |
| apt-get update -qq | |
| apt-get install -qqy autoconf-archive python3.14-dev python3.14 | |
| - name: Build | |
| run: | | |
| autoreconf -vfi | |
| mkdir _build && cd _build | |
| export PKG_CONFIG_LIBDIR=/dev/null | |
| unset PKG_CONFIG_PATH | |
| export CC=${{ matrix.arch }}-w64-mingw32-clang | |
| export CXX=${CC}++ | |
| ../configure \ | |
| --host=${{ matrix.arch }}-w64-mingw32 \ | |
| --build=x86_64-pc-linux-gnu \ | |
| --enable-shared \ | |
| --without-ensurepip \ | |
| --without-remote-debug \ | |
| --without-c-locale-coercion \ | |
| --enable-loadable-sqlite-extensions \ | |
| --with-build-python=yes | |
| make -j8 | |
| make install DESTDIR="$(pwd)/install" | |
| - name: 'Zip files' | |
| run: | | |
| zip -r install.zip _build/install | |
| - name: Upload | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-cross-llvm-mingw-${{ matrix.arch }} | |
| path: install.zip | |
| cross-llvm-mingw-test: | |
| needs: [cross-llvm-mingw] | |
| runs-on: ${{ matrix.runner }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| arch: ['x86_64', 'i686', 'aarch64'] | |
| include: | |
| - arch: x86_64 | |
| runner: windows-latest | |
| - arch: i686 | |
| runner: windows-latest | |
| - arch: aarch64 | |
| runner: windows-11-arm | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: build-cross-llvm-mingw-${{ matrix.arch }} | |
| - name: 'Run tests' | |
| run: | | |
| if (Test-Path ./_build) {rm -r -fo ./_build} | |
| Add-Type -AssemblyName System.IO.Compression.FileSystem ; | |
| [System.IO.Compression.ZipFile]::ExtractToDirectory("$PWD\install.zip", "$PWD") | |
| ./_build/install/usr/local/bin/python3.exe -c "import sysconfig, pprint; pprint.pprint(sysconfig.get_config_vars())" | |