From 06b5959eed5bd634851cd52dc24dca51e48d32de Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Sat, 10 Apr 2021 08:46:27 +0200 Subject: ci: store last-modified timestamps in Github Actions cache (#10110) --- .github/workflows/ci.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a341c4a59..1ad068ed5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,7 +44,6 @@ jobs: 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')) }} env: - CARGO_INCREMENTAL: 0 RUST_BACKTRACE: full CARGO_TERM_COLOR: always @@ -59,7 +58,7 @@ jobs: # other commits have landed it will become impossible to rebuild if # the checkout is too shallow. fetch-depth: 5 - submodules: true + submodules: recursive - name: Create source tarballs (release, linux) if: | @@ -168,6 +167,23 @@ jobs: brew install gnu-tar echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH + - name: Cache + uses: actions/cache@v2 + with: + path: | + ~/.cargo/git + ~/.cargo/registry + ./target + key: + ${{ matrix.os }}-${{ matrix.kind }}-${{ hashFiles('Cargo.lock') }} + restore-keys: | + ${{ matrix.os }}-${{ matrix.kind }}- + + - name: Apply and update mtime cache + uses: ./.github/mtime_cache + with: + cache-path: ./target + - name: test_format.js if: matrix.kind == 'lint' run: deno run --unstable --allow-write --allow-read --allow-run ./tools/format.js --check -- cgit v1.2.3