Skip to content
Myr

github: update WASI compilation job

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Ref https://blog.rust-lang.org/2024/04/09/updates-to-rusts-wasi-targets.html PR #2970

authored by Kizhyk · committed by GitHub · parent 9430512 · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:.github/workflows/ci.yml+3 added-3 removed
187 unmodified lines
188 - name: Print available short flags189 shell: bash190 run: ${{ env.CARGO }} test --bin rg ${{ env.TARGET_FLAGS }} flags::defs::tests::available_shorts -- --nocapture191192 # Setup and compile on the wasm32-wasi target192 # Setup and compile on the wasm32-wasip1 target193 wasm:194 runs-on: ubuntu-latest195 steps:196 - name: Checkout repository
1 unmodified line
198 - name: Install Rust199 uses: dtolnay/rust-toolchain@master200 with:201 toolchain: stable202 - name: Add wasm32-wasi target203 run: rustup target add wasm32-wasi202 - name: Add wasm32-wasip1 target203 run: rustup target add wasm32-wasip1204 - name: Basic build205 run: cargo build --verbose206207 rustfmt:
25 unmodified lines