Visitar URL original
use windows-11-arm runner to test ARM64 wheel on native env. · google/sentencepiece@36b9745 · GitHub
Skip to content

Commit 36b9745

Browse files
committed
use windows-11-arm runner to test ARM64 wheel on native env.
1 parent 4f043ae commit 36b9745

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

‎.github/workflows/wheel.yml‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- 'v*'
88
pull_request:
99
branches: [ master ]
10-
workflow_dispatch:
10+
workflow_dispatch:
1111
release:
1212
types: [ created ]
1313

@@ -22,7 +22,7 @@ jobs:
2222
digests-windows: ${{ steps.hash-windows.outputs.digests }}
2323
strategy:
2424
matrix:
25-
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-latest]
25+
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, windows-11-arm, macos-latest]
2626
runs-on: ${{ matrix.os }}
2727
name: Build wheels on ${{ matrix.os }}
2828

@@ -35,13 +35,17 @@ jobs:
3535
with:
3636
python-version: "3.x"
3737

38-
- name: Build for Windows
39-
if: runner.os == 'Windows'
38+
- name: Build for Windows (Win32/x64)
39+
if: runner.os == 'Windows' && runner.arch == 'ARM64'
4040
run: |
4141
cmake -A Win32 -B build_win32 -DSPM_ENABLE_SHARED=OFF -DSPM_DISABLE_EMBEDDED_DATA=ON -DCMAKE_INSTALL_PREFIX=build/root_win32
4242
cmake --build build_win32 --config Release --target install --parallel 8
4343
cmake -A x64 -B build_amd64 -DSPM_ENABLE_SHARED=OFF -DSPM_DISABLE_EMBEDDED_DATA=ON -DCMAKE_INSTALL_PREFIX=build/root_amd64
4444
cmake --build build_amd64 --config Release --target install --parallel 8
45+
46+
- name: Build for Windows (ARM64)
47+
if: runner.os == 'Windows' && runner.arch != 'ARM64'
48+
run: |
4549
cmake -A arm64 -B build_arm64 -DSPM_ENABLE_SHARED=OFF -DSPM_DISABLE_EMBEDDED_DATA=ON -DCMAKE_INSTALL_PREFIX=build/root_arm64
4650
cmake --build build_arm64 --config Release --target install --parallel 8
4751
@@ -68,7 +72,7 @@ jobs:
6872
env:
6973
CIBW_ARCHS_LINUX: auto
7074
CIBW_ARCHS_MACOS: x86_64 universal2 arm64
71-
CIBW_ARCHS_WINDOWS: auto ARM64
75+
CIBW_ARCHS_WINDOWS: auto
7276
CIBW_SKIP: "*-musllinux_*"
7377
CIBW_ENVIRONMENT: "CMAKE_BUILD_PARALLEL_LEVEL=8"
7478
CIBW_BUILD_VERBOSITY: 1

0 commit comments

Comments
 (0)