Skip to content

Commit

Permalink
gha: add linux/aarch64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Jan 19, 2024
1 parent 397e920 commit 8b3f2f3
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
pyver: cp312-cp312
piparch: manylinux2014_x86_64

# Linux py builds x64
# Linux py builds x32
- name: linux 2.7 i686
os: ubuntu-latest
pyver: cp27-cp27m
Expand Down Expand Up @@ -116,6 +116,13 @@ jobs:

# numpy builds for >=3.10 do no include i686

# Linux py builds aarch64
- name: linux 3.12 aarch64
os: ubuntu-latest
pyver: cp312-cp312
piparch: manylinux2014_aarch64
platform: arm64

# OSX py builds
- name: osx 3.6 intel
os: macos-latest
Expand Down Expand Up @@ -247,6 +254,12 @@ jobs:
python -c 'import epicscorelibs; print("IMPORT", epicscorelibs.__file__)'
python -m nose2 -v epicscorelibs
- name: Set up QEMU
if: matrix.platform
uses: docker/setup-qemu-action@v2
with:
platforms: ${{ matrix.platform }}

- name: Docker PY build
if: matrix.pyver && !matrix.source
run: |
Expand Down Expand Up @@ -278,7 +291,10 @@ jobs:
cat runit.sh
chmod +x runit.sh
docker pull quay.io/pypa/${{ matrix.piparch }}
docker run --rm -v `pwd`:/io quay.io/pypa/${{ matrix.piparch }} ${{ matrix.pre }} /io/runit.sh
docker run \
--platform linux/${{ matrix.platform || 'amd64' }}
--rm -v `pwd`:/io \
quay.io/pypa/${{ matrix.piparch }} ${{ matrix.pre }} /io/runit.sh
- name: List Artifacts
run: ls dist/*
Expand Down

0 comments on commit 8b3f2f3

Please sign in to comment.