From 89bd2939835fa888346f789521f1013dc24a1d1b Mon Sep 17 00:00:00 2001 From: Alex Xiong Date: Thu, 11 May 2023 17:11:42 +0200 Subject: [PATCH] fix CI --- .github/workflows/build.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eb6e9a847..c6a5274e6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,7 +32,7 @@ jobs: override: true default: true components: rustfmt, clippy - targets: | + target: | wasm32-unknown-unknown - name: Install nightly toolchain @@ -66,8 +66,10 @@ jobs: - name: Check all tests and binaries compilation run: cargo check --workspace --tests --lib --bins - - name: Check no_std compilation - run: bash ./scripts/build_wasm.sh + - name: Check no_std support and WASM compilation + env: + RUSTFLAGS: -C target-cpu=generic + run: cargo build --target wasm32-unknown-unknown --no-default-features - name: Test run: bash ./scripts/run_tests.sh