Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lwshang committed Sep 6, 2024
1 parent 63f7db5 commit 47b8e76
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,39 @@ jobs:
cargo test --all-targets
cargo test --doc

wasm64:
name: cargo test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-12]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-wasm64-${{ hashFiles('Cargo.lock', 'rust-toolchain.toml') }}
restore-keys: |
${{ runner.os }}-wasm64-
${{ runner.os }}-
- name: Download pocket-ic
run: |
bash scripts/download_pocket_ic.sh
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
components: rust-src
- name: Run tests
run:
WASM64=1 cargo test --package ic-cdk-e2e-tests

fmt:
name: cargo fmt
runs-on: ubuntu-latest
Expand Down

0 comments on commit 47b8e76

Please sign in to comment.