Skip to content

Commit

Permalink
Merge #373
Browse files Browse the repository at this point in the history
373: Caching in CI r=sopium a=sopium

bors try

Co-authored-by: Yin Guanhao <[email protected]>
  • Loading branch information
bors[bot] and blckngm authored Aug 1, 2021
2 parents a788f06 + 8046220 commit 76fadc6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
with:
node-version: '16'

- uses: Swatinem/rust-cache@v1

- name: Clippy
run: cargo clippy --all --all-targets -- -D clippy::all

Expand All @@ -37,6 +39,14 @@ jobs:
RUSTFLAGS: -D warnings
run: cargo test --all --all-targets --all-features --locked

- name: Cache node_modules (windows)
if: matrix.os == 'windows-latest'
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-node-modules-

- name: Test (windows)
if: matrix.os == 'windows-latest'
shell: bash
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,15 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Cache cargo binaries (grcov, cargo-binutils)
uses: actions/cache@v1
with:
path: ~/.cargo/bin
key: ${{ runner.os }}-cargo-bin-grcov-cargo-binutils

- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-07-29
default: true
profile: minimal
components: llvm-tools-preview

- uses: Swatinem/rust-cache@v1

- name: Install grcov and cargo-binutils
env:
RUSTFLAGS: ""
Expand Down

0 comments on commit 76fadc6

Please sign in to comment.