Skip to content

Commit

Permalink
chore: Split WASM build & add targets
Browse files Browse the repository at this point in the history
  • Loading branch information
CPerezz committed Jan 5, 2024
1 parent a96d02e commit cb55f40
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,30 @@ concurrency:
cancel-in-progress: true

jobs:
test:
compat:
if: github.event.pull_request.draft == false
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
include:
- feature: default
target:
- wasm32-unknown-unknown
- wasm32-wasi
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
# We run WASM build (for tests) which compiles the lib allowig us to have
# `getrandom` as a dev-dependency.
- name: Build (WASM compat)
run: cargo build --tests --release --features "bn256-table derive_serde prefetch"
test:
if: github.event.pull_request.draft == false
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
include:
- feature: default
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
Expand All @@ -55,10 +68,6 @@ jobs:
# This build will be reused by nextest,
# and also checks (--all-targets) that benches don't bit-rot
run: cargo build --release --all-targets --no-default-features --features "${{ matrix.feature }}"
# We run WASM build (for tests) which compiles the lib allowig us to have
# `getrandom` as a dev-dependency.
- name: Build (WASM compat)
run: cargo build --tests --release --no-default-features --features "${{ matrix.feature }}"
- name: Test
run: |
cargo nextest run --profile ci --release --workspace --no-default-features --features "${{ matrix.feature }}"
Expand Down

0 comments on commit cb55f40

Please sign in to comment.