diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52b83a507e..bdb535f0a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,9 @@ on: [pull_request] name: CI +variables: + RUSTC_WRAPPER: "./ci/sccache" + jobs: test: name: fmt, clippy, test, test --release @@ -28,24 +31,6 @@ jobs: - run: rustup component add rustfmt - - name: Cache cargo registry - uses: actions/cache@v1 - with: - path: ~/.cargo/registry - key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - - - name: Cache cargo index - uses: actions/cache@v1 - with: - path: ~/.cargo/git - key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} - - - name: Cache compiled valgrind - uses: actions/cache@v1 - with: - path: ~/valgrind-3.6.1/ - key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - - uses: actions-rs/cargo@v1 name: rustfmt version with: @@ -84,3 +69,5 @@ jobs: with: command: test args: --release + + - run: ./ci/sccache --show-stats diff --git a/ci/sccache b/ci/sccache new file mode 100755 index 0000000000..57ecbea0db Binary files /dev/null and b/ci/sccache differ