From 7b7b230c5b992b7782e41c0c3f52aa7ab334b6ac Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Tue, 11 Oct 2022 10:29:48 +0200 Subject: [PATCH 1/2] Add wasm build step to CI --- .github/workflows/build.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8f847ce5..24aca3bb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -110,6 +110,32 @@ jobs: with: command: build args: --manifest-path=no_std/no_std_test/Cargo.toml ${{matrix.flags}} + wasm: + name: Check Wasm build + runs-on: ubuntu-latest + strategy: + matrix: + flags: + - "" + - "--no-default-features" + - "--features wasm-bindgen" + - "--no-default-features --features wasm-bindgen" + fail-fast: false + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ env.RUST_MSRV }} + override: true + target: wasm32-unknown-unknown + - name: Build + uses: actions-rs/cargo@v1 + with: + command: build + args: --target wasm32-unknown-unknown ${{matrix.flags}} + rustfmt: name: Check Formatting runs-on: windows-latest From 0c4564f597bc64143c9794a4e024e2584c1f1add Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Tue, 11 Oct 2022 12:06:22 +0200 Subject: [PATCH 2/2] Comment out failing tests - just doc what passes currently --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 24aca3bb..da5f1126 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -116,9 +116,10 @@ jobs: strategy: matrix: flags: - - "" +# These fail currently, future PR should fix them +# - "" +# - "--features wasm-bindgen" - "--no-default-features" - - "--features wasm-bindgen" - "--no-default-features --features wasm-bindgen" fail-fast: false steps: