ci: Add cache back again (#435)

* ci: Add cache back again

* comments
This commit is contained in:
Clement Tsang 2021-03-12 21:41:48 -05:00 committed by GitHub
parent d8f8a92b55
commit 4d46e7159b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -33,7 +33,7 @@ jobs:
components: rustfmt components: rustfmt
- run: cargo fmt --all -- --check - run: cargo fmt --all -- --check
# Check clippy. This doesn't check ARM though. # Check clippy. Note that this doesn't check ARM.
clippy: clippy:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
@ -171,6 +171,8 @@ jobs:
override: true override: true
target: ${{ matrix.triple.target }} target: ${{ matrix.triple.target }}
- uses: Swatinem/rust-cache@v1
- name: Check - name: Check
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
@ -178,6 +180,7 @@ jobs:
args: --all-targets --verbose --target=${{ matrix.triple.target }} --no-default-features args: --all-targets --verbose --target=${{ matrix.triple.target }} --no-default-features
use-cross: ${{ matrix.triple.cross }} use-cross: ${{ matrix.triple.cross }}
# Run tests on a subset of platforms
tests: tests:
needs: [check] needs: [check]
name: Test ${{ matrix.os }} name: Test ${{ matrix.os }}
@ -199,6 +202,8 @@ jobs:
toolchain: stable toolchain: stable
override: true override: true
- uses: Swatinem/rust-cache@v1
- name: Run tests - name: Run tests
run: cargo test --no-fail-fast run: cargo test --no-fail-fast
env: env:

View File

@ -37,6 +37,7 @@
"SEGV", "SEGV",
"SIGTERM", "SIGTERM",
"STKFLT", "STKFLT",
"Swatinem",
"TEBI", "TEBI",
"TERA", "TERA",
"TSTP", "TSTP",