diff --git a/.github/workflows/rust_tests.yml b/.github/workflows/rust_tests.yml index 0f068ee..de8bd8f 100644 --- a/.github/workflows/rust_tests.yml +++ b/.github/workflows/rust_tests.yml @@ -115,6 +115,14 @@ jobs: env: CARGO_TARGET_WASM32_WASI_RUNNER: wasmedge # Build examples + - uses: actions-rs/cargo@v1 + name: "Build wasi-example" + if: matrix.target == 'wasm32-wasi' && matrix.toolchain == 'stable' + with: + command: build + toolchain: ${{ matrix.toolchain }} + args: --target ${{ matrix.target }} --manifest-path ./example-projects/wasi-example/Cargo.toml + - uses: actions-rs/cargo@v1 name: "Build reqwest-wasm-example" if: matrix.target == 'wasm32-unknown-unknown' && matrix.toolchain == 'stable' @@ -171,11 +179,3 @@ jobs: toolchain: ${{ matrix.toolchain }} args: --target ${{ matrix.target }} --manifest-path ./example-projects/nats-example/Cargo.toml - - uses: actions-rs/cargo@v1 - name: "Build wasi-example" - if: matrix.target == 'wasm32-wasi' && matrix.toolchain == 'stable' - with: - command: build - toolchain: ${{ matrix.toolchain }} - args: --target ${{ matrix.target }} --manifest-path ./example-projects/wasi-example/Cargo.toml -