diff options
| author | Bert Belder <bertbelder@gmail.com> | 2021-04-10 08:46:27 +0200 |
|---|---|---|
| committer | Bert Belder <bertbelder@gmail.com> | 2021-04-11 20:57:17 +0000 |
| commit | 06b5959eed5bd634851cd52dc24dca51e48d32de (patch) | |
| tree | 3a6cf2a7963000024a09273c0e69bab90ee0769f /.github/workflows/ci.yml | |
| parent | ae95da5d10c2899e8475964466b249a0d15d9825 (diff) | |
ci: store last-modified timestamps in Github Actions cache (#10110)
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 20 |
1 files changed, 18 insertions, 2 deletions
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 |
