Skip to content

Commit

Permalink
Run test for cross-compiled wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrossard committed Nov 27, 2022
1 parent eee0469 commit 70b695d
Showing 1 changed file with 41 additions and 3 deletions.
44 changes: 41 additions & 3 deletions .github/workflows/ci-build-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
profile: minimal
target: arm-unknown-linux-gnueabihf
default: true
- name: Install cross toolchain
- name: Install cross toolchain and build
run: |
brew tap messense/macos-cross-toolchains
brew install arm-unknown-linux-gnueabihf
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
profile: minimal
target: armv7-unknown-linux-gnueabihf
default: true
- name: Install cross toolchain
- name: Install cross toolchain and build
run: |
brew tap messense/macos-cross-toolchains
brew install armv7-unknown-linux-gnueabihf
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
profile: minimal
target: aarch64-unknown-linux-gnu
default: true
- name: Install cross toolchain
- name: Install cross toolchain and build
run: |
brew tap messense/macos-cross-toolchains
brew install aarch64-unknown-linux-gnu
Expand All @@ -162,3 +162,41 @@ jobs:
with:
name: wheels
path: ./wheelhouse/*.whl

test-cross:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- distro: ubuntu22.04
arch: aarch64
# - distro: bullseye
# arch: armv7
- distro: bullseye
arch: armv6
needs: [linux-armv6, linux-armv7, linux-aarch64]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/download-artifact@v3
with:
name: wheels
path: ./wheelhouse
- uses: uraimo/[email protected]
name: Install built wheel
with:
arch: ${{ matrix.platform.arch }}
distro: ${{ matrix.platform.distro }}
githubToken: ${{ github.token }}
install: |
apt-get update
apt-get install -y --no-install-recommends python3 python3-pip
pip3 install -U pip
run: |
pip3 install -U 'appdirs>=1.4,<2.0' cffi 'pyyaml>=6.0,<7.0' 'pytest>=6.0' hypothesis jinja2
pip3 install cmsis-pack-manager --no-index --find-links ./wheelhouse
rm -rf cmsis_pack_manager
python3 -c "import cmsis_pack_manager"
pytest --cache-clear

0 comments on commit 70b695d

Please sign in to comment.