Skip to content

Commit

Permalink
Rust CI caching (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Mar 15, 2022
1 parent 636625c commit 79ef4d2
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,18 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Install
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- uses: Swatinem/rust-cache@v1

- run: wasm-pack build --dev --target nodejs
- run: wasm-pack test --node

Expand All @@ -32,9 +41,18 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Install
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- uses: Swatinem/rust-cache@v1

- uses: actions/setup-node@v2
with:
node-version: "16"
Expand All @@ -55,12 +73,14 @@ jobs:
- uses: actions/checkout@v2

- name: Install Rust
run: rustup update stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
components: rustfmt

- uses: Swatinem/rust-cache@v1

- name: Install rustfmt
run: rustup component add rustfmt

- name: Run
run: cargo fmt --all -- --check

0 comments on commit 79ef4d2

Please sign in to comment.