@@ -172,43 +172,6 @@ jobs:
172172 path : ${{ runner.tool_cache }}/ccache
173173 key : 0-cache-${{ matrix.artifact }}-${{ github.run_id }}
174174
175- build-only-sysroot :
176- name : Build only sysroot - ${{ matrix.name }}
177- runs-on : ubuntu-24.04
178- strategy :
179- matrix :
180- include :
181- - name : default
182- - name : exceptions
183- defines : -DWASI_SDK_EXCEPTIONS=ON
184- - name : static
185- defines : -DWASI_SDK_BUILD_SHARED=OFF
186- steps :
187- - uses : actions/checkout@v6
188- with :
189- fetch-depth : 0
190- - uses : ./.github/actions/checkout
191- - uses : ./.github/actions/install-deps
192- - run : cargo install wasm-component-ld@0.5.21
193- - name : Install LLVM 22
194- run : |
195- v=22
196- rel=$(lsb_release -cs)
197- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/keyrings/llvm.asc
198- echo "deb [signed-by=/etc/apt/keyrings/llvm.asc] http://apt.llvm.org/$rel/ llvm-toolchain-$rel-$v main" | sudo tee /etc/apt/sources.list.d/llvm-$v.list
199- sudo apt-get update -y && sudo apt-get install -y clang-$v lld-$v
200- - run : |
201- cmake -G Ninja -B build -S . \
202- -DCMAKE_C_COMPILER=/usr/lib/llvm-22/bin/clang \
203- -DCMAKE_SYSTEM_NAME=WASI \
204- -DWASI_SDK_INCLUDE_TESTS=ON \
205- -DWASI_SDK_CPU_CFLAGS="" \
206- -DCMAKE_C_LINKER_DEPFILE_SUPPORTED=OFF \
207- -DCMAKE_CXX_LINKER_DEPFILE_SUPPORTED=OFF \
208- ${{ matrix.defines }}
209- - run : ninja -C build
210- - run : ctest --output-on-failure --parallel 10 --test-dir build/tests
211-
212175 # Once all of the above matrix entries have completed this job will run and
213176 # assemble the final `wasi-sdk-*` artifacts by fusing the toolchain/sysroot
214177 # artifacts.
@@ -267,31 +230,3 @@ jobs:
267230 run : gh release create --draft --prerelease --generate-notes ${{ github.ref_name }} ./dist/*
268231 env :
269232 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
270-
271- # Test the final artifacts as-is without passing `--sysroot` or
272- # `-resource-dir` or any extra flags. This exercises running the compiler
273- # as-is from the distribution tarballs and ensuring that it can build and pass
274- # all tests.
275- test-standalone :
276- name : Test standalone toolchain
277- needs : build
278- runs-on : ubuntu-24.04
279- steps :
280- - uses : actions/checkout@v6
281- with :
282- fetch-depth : 0
283- - uses : ./.github/actions/checkout
284- - uses : ./.github/actions/install-deps
285- - uses : actions/download-artifact@v8
286- with :
287- name : dist-x86_64-linux
288- path : dist-x86_64-linux
289- - run : ./ci/merge-artifacts.sh
290- - run : tar xf dist/wasi-sdk-*.tar.gz
291- - run : |
292- cmake -G Ninja -B build -S . \
293- -DWASI_SDK_INCLUDE_TESTS=ON \
294- -DWASI_SDK_TEST_HOST_TOOLCHAIN=ON \
295- -DCMAKE_TOOLCHAIN_FILE=$(ls ./wasi-sdk-*/share/cmake/wasi-sdk-p1.cmake)
296- - run : ninja -C build build-tests
297- - run : ctest --output-on-failure --parallel 10 --test-dir build/tests
0 commit comments