message: Add `rust-cache` to the CI workflow.
diff: @@ -6,6 +6,9 @@ on:
  - "*"
  pull_request:
  +env:
  + RUST_BACKTRACE: 1
  +
  jobs:
  linux:
  runs-on: ubuntu-latest
  @@ -26,20 +29,14 @@ jobs:
  toolchain: ${{ matrix.version }}
  override: true
  components: rustfmt
  - - name: clean
  - run: cargo clean
  + - name: cache
  + uses: Swatinem/rust-cache@v2
  - name: build
  run: cargo build
  - env:
  - RUST_BACKTRACE: 1
  - name: test
  run: cargo test
  - env:
  - RUST_BACKTRACE: 1
  - name: ignored test
  run: cargo test -- --ignored || true
  - env:
  - RUST_BACKTRACE: 1
  if: matrix.version == 'nightly'
  - name: check formatting
  run: cargo fmt -- --check
  @@ -59,12 +56,12 @@ jobs:
  with:
  toolchain: ${{ matrix.version }}
  override: true
  + - name: cache
  + uses: Swatinem/rust-cache@v2
  - name: build
  run: cargo build
  - name: test
  run: cargo test -- || true
  - env:
  - RUST_BACKTRACE: 1
  mac:
  runs-on: macos-latest
  strategy:
  @@ -80,9 +77,9 @@ jobs:
  with:
  toolchain: ${{ matrix.version }}
  override: true
  + - name: cache
  + uses: Swatinem/rust-cache@v2
  - name: build
  run: cargo build
  - name: test
  run: cargo test -- || true
  - env:
  - RUST_BACKTRACE: 1
  