summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml14
1 files changed, 6 insertions, 8 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index fe30454aa..fff0d799b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -17,13 +17,13 @@ jobs:
kind: test_release
- os: windows-2019
kind: test_release
- - os: ubuntu-latest-xl
+ - os: ${{ github.repository == 'denoland/deno' && 'ubuntu-latest-xl' || 'ubuntu-18.04' }}
kind: test_release
- - os: ubuntu-latest-xl
+ - os: ${{ github.repository == 'denoland/deno' && 'ubuntu-latest-xl' || 'ubuntu-18.04' }}
kind: test_debug
- - os: ubuntu-latest-xl
+ - os: ${{ github.repository == 'denoland/deno' && 'ubuntu-latest-xl' || 'ubuntu-18.04' }}
kind: bench
- - os: ubuntu-latest-xl
+ - os: ${{ github.repository == 'denoland/deno' && 'ubuntu-latest-xl' || 'ubuntu-18.04' }}
kind: lint
# Always run master branch builds to completion. This allows the cache to
@@ -31,8 +31,7 @@ jobs:
# e.g. a flaky test.
# Don't fast-fail on tag build because publishing binaries shouldn't be
# prevented if 'cargo publish' fails (which can be a false negative).
- fail-fast:
- ${{ github.event_name == 'pull_request' || (github.ref !=
+ fail-fast: ${{ github.event_name == 'pull_request' || (github.ref !=
'refs/heads/master' && !startsWith(github.ref, 'refs/tags/')) }}
env:
@@ -115,8 +114,7 @@ jobs:
target/*/.*
target/*/build
target/*/deps
- key:
- ${{ matrix.os }}-${{ matrix.kind }}-${{ hashFiles('Cargo.lock') }}
+ key: ${{ matrix.os }}-${{ matrix.kind }}-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ matrix.os }}-${{ matrix.kind }}-