diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d5a8924f..41ae68c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -98,6 +98,31 @@ jobs: - name: Upload coverage report uses: codecov/codecov-action@v1 + test-arch: + if: startsWith(github.ref, 'refs/tags') || github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main' + name: Test on ${{ matrix.distro }} ${{ matrix.arch }} + runs-on: "ubuntu-latest" + needs: lint + strategy: + matrix: + distro: [ "ubuntu20.04" ] + arch: ["aarch64"] + steps: + - uses: actions/checkout@v2.3.4 + with: + submodules: recursive + - uses: uraimo/run-on-arch-action@v2.0.9 + name: Build & run test + with: + arch: ${{ matrix.arch }} + distro: ${{ matrix.distro }} + install: | + apt-get update -q -y + apt-get install -q -y python3 python3-pip gcc binutils automake autoconf libtool + run: | + python3 -m pip install -U setuptools pip wheel tox + tox + # Test if the python-isal conda package can be build. Which is linked # dynamically to the conda isa-l package. test-dynamic: @@ -132,7 +157,7 @@ jobs: deploy: if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') runs-on: ${{ matrix.os }} - needs: [lint, package-checks, test-static, test-dynamic] + needs: [lint, package-checks, test-static, test-dynamic, test-arch] strategy: matrix: os: ["macos-latest", "ubuntu-latest", "windows-latest"] @@ -153,11 +178,18 @@ jobs: - name: Install nasm (Windows) uses: ilammy/setup-nasm@v1.2.0 if: runner.os == 'Windows' + - name: Set up QEMU + if: runner.os == 'Linux' + uses: docker/setup-qemu-action@v1.0.1 + with: + platforms: arm64 - name: Build wheels run: cibuildwheel --output-dir dist env: CIBW_SKIP: "*-win32 *-manylinux_i686" # Skip 32 bit. CIBW_MANYLINUX_X86_64_IMAGE: "manylinux2014" + CIBW_MANYLINUX_AARCH64_IMAGE: "manylinux2014" + CIBW_ARCHS_LINUX: "x86_64 aarch64" # Fully test the build wheels again. CIBW_TEST_REQUIRES: "pytest" # Simple test that requires the project to be build correctly diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a31a65b9..c1d689ad 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -9,6 +9,9 @@ Changelog version 0.9.0-dev ----------------- ++ Fix a bug where a AttributeError was triggered when zlib.Z_RLE or + zlib.Z_FIXED were not present. ++ Add support for Linux aarch64 builds. + Add support for pypy by adding pypy tests to the CI and setting up wheel building support.