Skip to content

Commit fb8406a

Browse files
committed
Architectures in Matrix
1 parent de86c72 commit fb8406a

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,24 @@ on:
99

1010
jobs:
1111
build_wheels:
12-
name: Build Wheels ( ${{matrix.os}} )
13-
runs-on: ${{ matrix.os }}
12+
name: Build Wheels (${{matrix.os.name}})
13+
runs-on: ${{ matrix.os.runner }}
1414
strategy:
1515
matrix:
16-
os: [ubuntu-20.04, windows-2019, macos-11]
16+
os:
17+
[
18+
{
19+
name: "Ubuntu 20.04",
20+
runner: "ubuntu-20.04",
21+
archs: "x86_64,aarch64",
22+
},
23+
{ name: "macOS 11", runner: "macos-11", archs: "x86_64,arm64" },
24+
{
25+
name: "Windows Server 2019",
26+
runner: "windows-2019",
27+
archs: "AMD64,ARM64",
28+
},
29+
]
1730
steps:
1831
- uses: actions/checkout@v3
1932
with:
@@ -23,7 +36,7 @@ jobs:
2336
- name: Install cibuildwheel
2437
run: python -m pip install cibuildwheel==2.15.0
2538
- name: Build wheels
26-
run: python -m cibuildwheel --archs x86_64,aarch64 --output-dir dist
39+
run: python -m cibuildwheel --archs ${{ matrix.os.archs }} --output-dir dist
2740
- uses: actions/upload-artifact@v3
2841
with:
2942
path: ./dist/*.whl

0 commit comments

Comments
 (0)