Skip to content

Commit 4d95901

Browse files
biryukovmaximthomwiggers
authored andcommitted
Add CI workflow for wasm32-unknown-unknown target
1 parent f36f6d2 commit 4d95901

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,33 @@ jobs:
8585
cargo install cargo-ndk
8686
cargo ndk -t aarch64-linux-android build
8787
88+
wasm32-unknown-unknown:
89+
name: wasm32-unknown-unknown
90+
runs-on: ubuntu-latest
91+
strategy:
92+
matrix:
93+
rust: [ stable, beta, nightly ]
94+
steps:
95+
- uses: actions/checkout@v4
96+
with:
97+
submodules: true
98+
99+
- name: Install Rust
100+
run: |
101+
rustup toolchain install ${{ matrix.rust }} --profile minimal --component clippy
102+
rustup default ${{ matrix.rust }}
103+
rustup target add wasm32-unknown-unknown
104+
105+
- name: Check workspace (all crates except classicmceliece & umbrella)
106+
run: |
107+
cargo check --workspace --target wasm32-unknown-unknown --features getrandom_wasm_js \
108+
--exclude pqcrypto-classicmceliece \
109+
--exclude pqcrypto
110+
111+
- name: Check umbrella crate (explicitly enable only supported wasm crates)
112+
run: |
113+
cargo check --target wasm32-unknown-unknown \
114+
-p pqcrypto --no-default-features -F pqcrypto-mlkem,pqcrypto-hqc,pqcrypto-mldsa,pqcrypto-falcon,pqcrypto-sphincsplus,serialization,getrandom_wasm_js
88115
# wasi:
89116
# name: wasi
90117
# runs-on: ubuntu-latest

0 commit comments

Comments
 (0)