Skip to content

Commit

Permalink
Change build workflow step to avoid recompilation (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
cycraig committed Sep 7, 2021
1 parent 0f5be7e commit ea36efc
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/build-and-test.yml
Expand Up @@ -133,18 +133,16 @@ jobs:
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --all --release
# Build the library, tests, and examples without running them to avoid recompilation in the run tests step
command: test
args: --all --release --no-run

- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all --release

- name: Print sccache stats
run: sccache --show-stats

- name: Stop sccache server
run: sccache --stop-server || true

Expand Down Expand Up @@ -244,9 +242,6 @@ jobs:
command: test
args: --manifest-path ./libjose/Cargo.toml --release

- name: Print sccache stats
run: sccache --show-stats

- name: Stop sccache server
run: sccache --stop-server || true

Expand Down Expand Up @@ -367,8 +362,5 @@ jobs:
run: wasm-pack test --node
working-directory: bindings/wasm

- name: Print sccache stats
run: sccache --show-stats

- name: Stop sccache server
run: sccache --stop-server || true

0 comments on commit ea36efc

Please sign in to comment.