Skip to content

Commit bc7d965

Browse files
authored
Merge pull request #278 from bgilbert/aarch64
workflows: add Linux aarch64 builds
2 parents 6d469ff + 3442013 commit bc7d965

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/python.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
runs-on: ${{ matrix.os }}
4343
strategy:
4444
matrix:
45-
os: [ubuntu-latest, macos-latest]
45+
os: [ubuntu-latest, ubuntu-24.04-aarch64, macos-latest]
4646
python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13-dev"]
4747
openslide: [system, wheel]
4848
include:
@@ -93,11 +93,15 @@ jobs:
9393
run: |
9494
case "${{ matrix.os }}" in
9595
ubuntu-latest)
96-
echo OS_TAG=linux >> $GITHUB_ENV
96+
echo OS_ARCH_TAG=linux-x86_64 >> $GITHUB_ENV
97+
sudo apt-get install libopenslide0
98+
;;
99+
ubuntu-24.04-aarch64)
100+
echo OS_ARCH_TAG=linux-aarch64 >> $GITHUB_ENV
97101
sudo apt-get install libopenslide0
98102
;;
99103
macos-latest)
100-
echo OS_TAG=macos >> $GITHUB_ENV
104+
echo OS_ARCH_TAG=macos-arm64-x86_64 >> $GITHUB_ENV
101105
echo DYLD_LIBRARY_PATH=/opt/homebrew/lib >> $GITHUB_ENV
102106
brew install openslide
103107
;;
@@ -151,7 +155,7 @@ jobs:
151155
if: env.archive_wheel
152156
uses: actions/upload-artifact@v4
153157
with:
154-
name: ${{ needs.pre-commit.outputs.dist-base }}-${{ env.OS_TAG }}-${{ matrix.python-version }}
158+
name: ${{ needs.pre-commit.outputs.dist-base }}-${{ env.OS_ARCH_TAG }}-${{ matrix.python-version }}
155159
path: artifacts/whl
156160
compression-level: 0
157161

@@ -223,7 +227,7 @@ jobs:
223227
if: env.archive_wheel
224228
uses: actions/upload-artifact@v4
225229
with:
226-
name: ${{ needs.pre-commit.outputs.dist-base }}-windows-${{ matrix.python-version }}
230+
name: ${{ needs.pre-commit.outputs.dist-base }}-windows-x64-${{ matrix.python-version }}
227231
path: artifacts/whl
228232
compression-level: 0
229233

0 commit comments

Comments
 (0)