diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 8fb9bbb..929a956 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - ciCaching # TODO: Remove before merging tags: - "[0-9]+.[0-9]+.[0-9]+" pull_request: @@ -96,6 +97,10 @@ jobs: run: | rustup toolchain install stable nightly --profile minimal -t ${{ matrix.target }} + - uses: Swatinem/rust-cache@v2 + with: + key: "${{ matrix.target }}-${{ env.EXTRA_CARGO_FLAGS }}" + - name: Test on stable # there's no way to run tests for ARM64 Windows for now if: matrix.target != 'aarch64-pc-windows-msvc'