@@ -82,22 +82,26 @@ jobs:
8282 matrix :
8383 os : [ubuntu-latest, macos-latest, windows-latest, windows-11-arm]
8484 env :
85- WASI_VERSION : 17
85+ WASI_VERSION : 27
8686 steps :
8787 - name : Check out repository code
8888 uses : actions/checkout@v3
8989
9090 - name : Setup WASI SDK download - Linux
9191 if : matrix.os == 'ubuntu-latest'
92- run : echo SYSTEM_NAME=linux >> $GITHUB_ENV
92+ run : echo SYSTEM_NAME=x86_64- linux >> $GITHUB_ENV
9393
9494 - name : Setup WASI SDK download - MacOS
9595 if : matrix.os == 'macos-latest'
96- run : echo SYSTEM_NAME=macos >> $GITHUB_ENV
96+ run : echo SYSTEM_NAME=arm64- macos >> $GITHUB_ENV
9797
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
101105
102106 - name : Download WASI SDK
103107 working-directory : tests/c
@@ -112,12 +116,12 @@ jobs:
112116 - name : Check formatting
113117 if : matrix.os == 'ubuntu-latest'
114118 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
116120
117121 - name : Build tests
118122 shell : bash
119123 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
121125
122126 - name : Upload precompiled tests
123127 if : matrix.os == 'ubuntu-latest'
0 commit comments