Skip to content

Commit 3627e44

Browse files
committed
Add Windows 11 arm support to ci
Try installing cargo Windows arm Update action.yml
1 parent a995a62 commit 3627e44

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/actions/install-deps/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ runs:
1414
shell: bash
1515
- name: Install ccache, ninja (Windows)
1616
run: choco install ccache ninja
17-
if: runner.os == 'Windows'
17+
if: startsWith(matrix.os, 'windows')
18+
shell: bash
19+
- name: Install cargo (Windows-arm)
20+
run: choco install rust
21+
if: matrix.os == 'windows-11-arm'
1822
shell: bash
1923
- name: Install ccache, ninja (Linux)
2024
run: sudo apt-get install -y ccache ninja-build

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ jobs:
4848
- artifact: x86_64-windows
4949
os: windows-2022
5050

51+
- artifact: arm64-windows
52+
os: windows-11-arm
53+
5154
env: ${{ matrix.env || fromJSON('{}') }}
5255
steps:
5356
- uses: actions/checkout@v4
@@ -102,7 +105,7 @@ jobs:
102105
#
103106
# As of 2024-07-22 this sha is the "v1.13.0" tag.
104107
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756
105-
if: runner.os == 'Windows'
108+
if: startsWith(matrix.os, 'windows')
106109
- name: Build and test (Windows)
107110
run: |
108111
# Delete a troublesome binary as recommended here
@@ -117,7 +120,7 @@ jobs:
117120
mkdir build
118121
cp -r C:/wasi-sdk/dist build
119122
shell: bash
120-
if: runner.os == 'Windows'
123+
if: startsWith(matrix.os, 'windows')
121124

122125
# Upload the `dist` folder from the build as the artifacts for this
123126
# runner.

0 commit comments

Comments
 (0)