summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2021-04-10 08:21:27 +0200
committerBert Belder <bertbelder@gmail.com>2021-04-11 20:57:16 +0000
commitae95da5d10c2899e8475964466b249a0d15d9825 (patch)
tree2cd977bf43790625a8321b71d403c1c98fd83c67 /.github
parent3c645457a4cb39a393f88635bbca3894df37d3e2 (diff)
Revert "use incremental build in ci (#10053)" (#10110)
This reverts commit fd65e6de3dc1ff909a1419c3b8f0c76daf1a69ed.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml22
1 files changed, 5 insertions, 17 deletions
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