Skip to content

Commit

Permalink
ci: fix wasi job (alloy-rs#993)
Browse files Browse the repository at this point in the history
* ci: fix wasi job

* ci: pin cc
  • Loading branch information
DaniPopes authored and ben186 committed Jul 27, 2024
1 parent 16aa15d commit 51e9724
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,21 +107,23 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-wasi
target: wasm32-wasip1
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: pin cc # https://github.com/rust-lang/cc-rs/issues/1109
run: cargo update cc --precise 1.0.99
- name: cargo hack
run: |
cargo hack build --workspace --target wasm32-wasi \
cargo hack build --workspace --target wasm32-wasip1 \
--exclude alloy-signer-gcp \
--exclude alloy-signer-ledger \
--exclude alloy-signer-trezor \
--exclude alloy-transport-ipc
# Ledger signer requires one of `browser` or `node` features.
- name: build ledger
run: cargo build -p alloy-signer-ledger --features browser --target wasm32-wasi
run: cargo build -p alloy-signer-ledger --features browser --target wasm32-wasip1

no-std:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 51e9724

Please sign in to comment.