From bed829389efe5ca8a6edc8861436f353d0b36ea6 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sat, 14 Mar 2020 12:47:18 +0100 Subject: [PATCH] [gh actions] invalidate cargo-installed-crates cache --- .github/workflows/main.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 34f543164dac..020582e542d2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,16 +15,16 @@ jobs: steps: - uses: actions/checkout@v2 - + # https://github.com/actions/cache/issues/133 - name: Fixup owner of ~/.cargo/bin run: sudo chown -R $(whoami):$(id -ng) ~/.cargo - + - name: Cache cargo installed crates uses: actions/cache@v1.1.2 with: path: ~/.cargo/bin - key: cargo-installed-crates-${{ matrix.os }} + key: cargo-installed-crates2-${{ matrix.os }} - name: Cache cargo registry uses: actions/cache@v1 @@ -49,21 +49,21 @@ jobs: git config --global user.email "user@example.com" git config --global user.name "User" ./prepare.sh - + # Compile is a separate step, as the actions-rs/cargo action supports error annotations - name: Compile uses: actions-rs/cargo@v1.0.1 with: command: build args: --release - + - name: Test run: | # Enable backtraces for easier debugging export RUST_BACKTRACE=1 - + # Reduce amount of benchmark runs as they are slow export COMPILE_RUNS=2 export RUN_RUNS=2 - + ./test.sh --release