1616 - { target: aarch64-pc-windows-msvc, os: windows-11-arm }
1717
1818 - { target: aarch64-unknown-linux-gnu, os: ubuntu-22.04, use-cross: true }
19+ - { target: wasm-wasip1, os: ubuntu-24.04 }
1920
2021 # mac-14 is an M1 ARM device.
2122 - { target: aarch64-apple-darwin, os: macos-14 }
@@ -35,13 +36,22 @@ jobs:
35363637 with :
3738 targets : ${{ matrix.job.target }}
39+ if : ${{ matrix.job.target != 'wasm32-wasip1' }}
3840
3941 - name : Install cross
4042 if : matrix.job.use-cross
4143 uses : taiki-e/install-action@v2
4244 with :
43454446
47+ - if : ${{ matrix.job.target == 'wasm32-wasip1' }}
48+ run : |
49+ wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-29/wasi-sdk-29.0-x86_64-linux.deb
50+ sudo apt-get install ./wasi-sdk-29.0-x86_64-linux.deb
51+ rm ./wasi-sdk-29.0-x86_64-linux.deb
52+ rustup override set stable
53+ rustup target add wasm32-wasip1
54+
4555 - name : Overwrite build command env variable
4656 if : matrix.job.use-cross
4757 shell : bash
5060 - name : Test
5161 shell : bash
5262 run : $BUILD_CMD $SUBCOMMAND --target ${{ matrix.job.target }}
63+ env :
64+ WASI_SDK_PATH : /opt/wasi-sdk
65+ WASI_SYSROOT : /opt/wasi-sdk/share/wasi-sysroot
66+ CC_wasm32_wasip1 : /opt/wasi-sdk/bin/clang
67+ AR_wasm32_wasip1 : /opt/wasi-sdk/bin/llvm-ar
68+ CFLAGS_wasm32_wasip1 : " --sysroot=/opt/wasi-sdk/share/wasi-sysroot"
5369
5470 test_mime_db :
5571 name : Test with MIME database
0 commit comments