From ae95da5d10c2899e8475964466b249a0d15d9825 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Sat, 10 Apr 2021 08:21:27 +0200 Subject: Revert "use incremental build in ci (#10053)" (#10110) This reverts commit fd65e6de3dc1ff909a1419c3b8f0c76daf1a69ed. --- .github/workflows/ci.yml | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a32193703..a341c4a59 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,7 +44,7 @@ jobs: 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')) }} env: - CARGO_INCREMENTAL: 1 + CARGO_INCREMENTAL: 0 RUST_BACKTRACE: full CARGO_TERM_COLOR: always @@ -55,10 +55,10 @@ jobs: - name: Clone repository uses: actions/checkout@v2 with: - # Disables shallow clone. We use full git history for restoring the mtime - # of each file to enable incremental build. - # See https://github.com/denoland/deno/pull/10053 - fetch-depth: 0 + # Use depth > 1, because sometimes we need to rebuild main and if + # other commits have landed it will become impossible to rebuild if + # the checkout is too shallow. + fetch-depth: 5 submodules: true - name: Create source tarballs (release, linux) @@ -160,9 +160,6 @@ jobs: cargo --version deno --version - - name: Restore timestamps - run: python ./tools/restore_mtime.py - # Work around https://github.com/actions/cache/issues/403 by using GNU tar # instead of BSD tar. - name: Install GNU tar @@ -171,15 +168,6 @@ 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: cache4-${{ matrix.os }}-${{ matrix.kind }}-${{ hashFiles('Cargo.lock') }} - - 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