Skip to content

Commit

Permalink
ci: Add wasm runner
Browse files Browse the repository at this point in the history
  • Loading branch information
felinira committed Nov 23, 2024
1 parent c0f884c commit 64afd46
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,24 @@ jobs:
- Linux
- Windows
- macOS
- WASM
include:
- os: Linux
image: ubuntu-latest
target: x86_64-unknown-linux-gnu
features: all,native-tls,experimental
- os: Windows
image: windows-latest
target: x86_64-pc-windows-msvc
features: all,native-tls,experimental
- os: macOS
image: macos-latest
target: aarch64-apple-darwin
features: all,native-tls,experimental
- os: WASM
image: ubuntu-latest
target: wasm32-unknown-unknown
features: transit,transfer
- channel: msrv
rust: ${{ needs.read_msrv.outputs.msrv }}
- channel: stable
Expand Down Expand Up @@ -114,19 +122,22 @@ jobs:
- name: build library (features=transfer)
run: cargo build -p magic-wormhole --target ${{ matrix.target }} --no-default-features --features=transfer
- name: build library (features=forwarding)
if: ${{ runner.os != "wasm" }}
run: cargo build -p magic-wormhole --target ${{ matrix.target }} --no-default-features --features=forwarding
- name: build CLI
if: ${{ runner.os != "wasm" }}
run: cargo build -p magic-wormhole-cli --target ${{ matrix.target }} --features=all
- name: build WASM
run: cargo build -p magic-wormhole --target wasm32-unknown-unknown --no-default-features --features transit --features transfer
if: ${{ runner.os == "wasm" }}
run: cargo build -p magic-wormhole --target wasm32-unknown-unknown --no-default-features --features ${{ matrix.features }}
- name: test
uses: nick-fields/retry@v3
with:
max_attempts: 3
polling_interval_seconds: 30
timeout_minutes: 30
retry_on_exit_code: 101
command: cargo test --verbose --workspace --features=all,native-tls,experimental
command: cargo test --verbose --workspace --features ${{ matrix.features }}

dist:
name: "Dist (${{ matrix.os }})"
Expand Down

0 comments on commit 64afd46

Please sign in to comment.