Skip to content

Commit 3d812d9

Browse files
committed
Try to add an ubuntu-22.04-arm runner
Botched elif
1 parent 745d364 commit 3d812d9

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/python_bindings.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,16 @@ jobs:
2525
# fail-fast: Default is true, switch to false to allow one platform to fail and still run others
2626
fail-fast: false
2727
matrix:
28-
name: [Ubuntu, macOS, macOS_arm64, Windows_py37, Windows_py38, Windows_py39, Windows_py310, Windows_py311, Windows_py312, Windows_py313]
28+
name: [Ubuntu, Ubuntu_arm64, macOS, macOS_arm64, Windows_py37, Windows_py38, Windows_py39, Windows_py310, Windows_py311, Windows_py312, Windows_py313]
2929
include:
3030
- name: Ubuntu
3131
os: ubuntu-22.04
3232
python-version: 3.8
3333
allow_failure: false
34+
- name: Ubuntu_arm64
35+
os: ubuntu-22.04-arm
36+
python-version: 3.8
37+
allow_failure: true
3438
- name: macOS
3539
os: macos-13
3640
python-version: 3.8
@@ -288,6 +292,9 @@ jobs:
288292
conan install . --output-folder=./build --build=missing -c tools.cmake.cmaketoolchain:generator=Ninja -s compiler.cppstd=20 -s build_type=Release -o with_testing=False -o with_benchmark=False -c tools.build:cxxflags="['-D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']"
289293
fi
290294
else
295+
if [ "${{ matrix.name }}" == "Ubuntu_arm64" ]; then
296+
PYTHON_ARCH=arm64
297+
fi
291298
PYTHON_VERSION=${{ steps.setup-python.outputs.python-version }}
292299
conan install . --output-folder=./build --build=missing -c tools.cmake.cmaketoolchain:generator=Ninja -s compiler.cppstd=20 -s build_type=Release -o with_testing=False -o with_benchmark=False
293300
fi
@@ -385,12 +392,16 @@ jobs:
385392
# fail-fast: Default is true, switch to false to allow one platform to fail and still run others
386393
fail-fast: false
387394
matrix:
388-
name: [Ubuntu, macOS, macOS_arm64, Windows_py37, Windows_py38, Windows_py39, Windows_py310, Windows_py311, Windows_py312, Windows_py313]
395+
name: [Ubuntu, Ubuntu_arm64, macOS, macOS_arm64, Windows_py37, Windows_py38, Windows_py39, Windows_py310, Windows_py311, Windows_py312, Windows_py313]
389396
include:
390397
- name: Ubuntu
391398
os: ubuntu-22.04
392399
python-version: 3.11 # Voluntarily using a newer version than built with for Unix
393400
allow_failure: false
401+
- name: Ubuntu_arm64
402+
os: ubuntu-22.04-arm
403+
python-version: 3.12
404+
allow_failure: true
394405
- name: macOS
395406
os: macos-13
396407
python-version: 3.11

0 commit comments

Comments
 (0)