@@ -82,22 +82,26 @@ jobs:
82
82
matrix :
83
83
os : [ubuntu-latest, macos-latest, windows-latest, windows-11-arm]
84
84
env :
85
- WASI_VERSION : 17
85
+ WASI_VERSION : 27
86
86
steps :
87
87
- name : Check out repository code
88
88
uses : actions/checkout@v3
89
89
90
90
- name : Setup WASI SDK download - Linux
91
91
if : matrix.os == 'ubuntu-latest'
92
- run : echo SYSTEM_NAME=linux >> $GITHUB_ENV
92
+ run : echo SYSTEM_NAME=x86_64- linux >> $GITHUB_ENV
93
93
94
94
- name : Setup WASI SDK download - MacOS
95
95
if : matrix.os == 'macos-latest'
96
- run : echo SYSTEM_NAME=macos >> $GITHUB_ENV
96
+ run : echo SYSTEM_NAME=arm64- macos >> $GITHUB_ENV
97
97
98
- - name : Setup WASI SDK download - Windows
99
- if : startsWith(matrix.os, 'windows')
100
- run : echo SYSTEM_NAME=mingw >> $env:GITHUB_ENV
98
+ - name : Setup WASI SDK download - Windows (x86)
99
+ if : matrix.os == 'windows-latest'
100
+ run : echo SYSTEM_NAME=x86_64-windows >> $env:GITHUB_ENV
101
+
102
+ - name : Setup WASI SDK download - Windows (ARM)
103
+ if : matrix.os == 'windows-11-arm'
104
+ run : echo SYSTEM_NAME=arm64-windows >> $env:GITHUB_ENV
101
105
102
106
- name : Download WASI SDK
103
107
working-directory : tests/c
@@ -112,12 +116,12 @@ jobs:
112
116
- name : Check formatting
113
117
if : matrix.os == 'ubuntu-latest'
114
118
working-directory : tests/c
115
- run : find testsuite -regex '.*\.\(c\|h\)' -print0 | xargs -0 -n1 ./wasi-sdk-${WASI_VERSION}.0/bin/clang-format --style=file --dry-run -Werror
119
+ run : find testsuite -regex '.*\.\(c\|h\)' -print0 | xargs -0 -n1 ./wasi-sdk-${WASI_VERSION}.0-${SYSTEM_NAME} /bin/clang-format --style=file --dry-run -Werror
116
120
117
121
- name : Build tests
118
122
shell : bash
119
123
working-directory : tests/c
120
- run : CC="./wasi-sdk-${WASI_VERSION}.0/bin/clang" ./build.sh
124
+ run : CC="./wasi-sdk-${WASI_VERSION}.0-${SYSTEM_NAME} /bin/clang" ./build.sh
121
125
122
126
- name : Upload precompiled tests
123
127
if : matrix.os == 'ubuntu-latest'
0 commit comments