mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 04:48:52 -05:00
chore(ci): skip non-ubuntu test release jobs on PRs (#17353)
This commit is contained in:
parent
ee2c6cb04a
commit
9d54765f3e
2 changed files with 110 additions and 80 deletions
42
.github/workflows/ci.generate.ts
vendored
42
.github/workflows/ci.generate.ts
vendored
|
@ -106,7 +106,9 @@ const installDenoStep = {
|
||||||
with: { "deno-version": "v1.x" },
|
with: { "deno-version": "v1.x" },
|
||||||
};
|
};
|
||||||
|
|
||||||
function cancelEarlyIfDraftPr(nextSteps: Record<string, unknown>[]): unknown[] {
|
function cancelEarlyIfDraftPr(
|
||||||
|
nextSteps: Record<string, unknown>[],
|
||||||
|
): Record<string, unknown>[] {
|
||||||
// Couple issues with GH Actions:
|
// Couple issues with GH Actions:
|
||||||
//
|
//
|
||||||
// 1. The pull_request event type does not include the commit message, so
|
// 1. The pull_request event type does not include the commit message, so
|
||||||
|
@ -129,14 +131,36 @@ function cancelEarlyIfDraftPr(nextSteps: Record<string, unknown>[]): unknown[] {
|
||||||
"echo $GIT_MESSAGE | grep '\\[ci\\]' || (echo 'Exiting due to draft PR. Commit with [ci] to bypass.' ; echo 'EXIT_EARLY=true' >> $GITHUB_OUTPUT)",
|
"echo $GIT_MESSAGE | grep '\\[ci\\]' || (echo 'Exiting due to draft PR. Commit with [ci] to bypass.' ; echo 'EXIT_EARLY=true' >> $GITHUB_OUTPUT)",
|
||||||
].join("\n"),
|
].join("\n"),
|
||||||
},
|
},
|
||||||
...nextSteps.map((step) => {
|
...nextSteps.map((step) =>
|
||||||
const condition = "steps.exit_early.outputs.EXIT_EARLY != 'true'";
|
skipForCondition(step, "steps.exit_early.outputs.EXIT_EARLY != 'true'")
|
||||||
step.if = "if" in step ? `${condition} && (${step.if})` : condition;
|
),
|
||||||
return step;
|
|
||||||
}),
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function skipJobsIfPrAndMarkedSkip(
|
||||||
|
steps: Record<string, unknown>[],
|
||||||
|
): Record<string, unknown>[] {
|
||||||
|
// GitHub does not make skipping a specific matrix element easy
|
||||||
|
// so just apply this condition to all the steps.
|
||||||
|
// https://stackoverflow.com/questions/65384420/how-to-make-a-github-action-matrix-element-conditional
|
||||||
|
return steps.map((s) =>
|
||||||
|
skipForCondition(
|
||||||
|
s,
|
||||||
|
"!(github.event_name == 'pull_request' && matrix.skip_pr)",
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function skipForCondition(
|
||||||
|
step: Record<string, unknown>,
|
||||||
|
condition: string,
|
||||||
|
): Record<string, unknown> {
|
||||||
|
return {
|
||||||
|
...step,
|
||||||
|
if: "if" in step ? `${condition} && (${step.if})` : condition,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const ci = {
|
const ci = {
|
||||||
name: "ci",
|
name: "ci",
|
||||||
on: {
|
on: {
|
||||||
|
@ -181,6 +205,7 @@ const ci = {
|
||||||
os: Runners.macos,
|
os: Runners.macos,
|
||||||
job: "test",
|
job: "test",
|
||||||
profile: "release",
|
profile: "release",
|
||||||
|
skip_pr: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
os: Runners.windows,
|
os: Runners.windows,
|
||||||
|
@ -191,6 +216,7 @@ const ci = {
|
||||||
os: Runners.windows,
|
os: Runners.windows,
|
||||||
job: "test",
|
job: "test",
|
||||||
profile: "release",
|
profile: "release",
|
||||||
|
skip_pr: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
os: Runners.linux,
|
os: Runners.linux,
|
||||||
|
@ -229,7 +255,7 @@ const ci = {
|
||||||
CARGO_TERM_COLOR: "always",
|
CARGO_TERM_COLOR: "always",
|
||||||
RUST_BACKTRACE: "full",
|
RUST_BACKTRACE: "full",
|
||||||
},
|
},
|
||||||
steps: [
|
steps: skipJobsIfPrAndMarkedSkip([
|
||||||
{
|
{
|
||||||
name: "Configure git",
|
name: "Configure git",
|
||||||
run: [
|
run: [
|
||||||
|
@ -791,7 +817,7 @@ const ci = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
]),
|
]),
|
||||||
],
|
]),
|
||||||
},
|
},
|
||||||
"publish-canary": {
|
"publish-canary": {
|
||||||
name: "publish canary",
|
name: "publish canary",
|
||||||
|
|
148
.github/workflows/ci.yml
vendored
148
.github/workflows/ci.yml
vendored
|
@ -33,12 +33,14 @@ jobs:
|
||||||
- os: macos-12
|
- os: macos-12
|
||||||
job: test
|
job: test
|
||||||
profile: release
|
profile: release
|
||||||
|
skip_pr: true
|
||||||
- os: '${{ github.repository == ''denoland/deno'' && ''windows-2019-xl'' || ''windows-2019'' }}'
|
- os: '${{ github.repository == ''denoland/deno'' && ''windows-2019-xl'' || ''windows-2019'' }}'
|
||||||
job: test
|
job: test
|
||||||
profile: fastci
|
profile: fastci
|
||||||
- os: '${{ github.repository == ''denoland/deno'' && ''windows-2019-xl'' || ''windows-2019'' }}'
|
- os: '${{ github.repository == ''denoland/deno'' && ''windows-2019-xl'' || ''windows-2019'' }}'
|
||||||
job: test
|
job: test
|
||||||
profile: release
|
profile: release
|
||||||
|
skip_pr: true
|
||||||
- os: '${{ github.repository == ''denoland/deno'' && ''ubuntu-20.04-xl'' || ''ubuntu-20.04'' }}'
|
- os: '${{ github.repository == ''denoland/deno'' && ''ubuntu-20.04-xl'' || ''ubuntu-20.04'' }}'
|
||||||
job: test
|
job: test
|
||||||
profile: release
|
profile: release
|
||||||
|
@ -63,14 +65,16 @@ jobs:
|
||||||
run: |-
|
run: |-
|
||||||
git config --global core.symlinks true
|
git config --global core.symlinks true
|
||||||
git config --global fetch.parallel 32
|
git config --global fetch.parallel 32
|
||||||
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr)'
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 5
|
fetch-depth: 5
|
||||||
submodules: false
|
submodules: false
|
||||||
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr)'
|
||||||
- name: Cancel if draft PR
|
- name: Cancel if draft PR
|
||||||
id: exit_early
|
id: exit_early
|
||||||
if: github.event.pull_request.draft == true
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (github.event.pull_request.draft == true)'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |-
|
run: |-
|
||||||
GIT_MESSAGE=$(git log --format=%s -n 1 ${{github.event.after}})
|
GIT_MESSAGE=$(git log --format=%s -n 1 ${{github.event.after}})
|
||||||
|
@ -78,27 +82,27 @@ jobs:
|
||||||
echo $GIT_MESSAGE | grep '\[ci\]' || (echo 'Exiting due to draft PR. Commit with [ci] to bypass.' ; echo 'EXIT_EARLY=true' >> $GITHUB_OUTPUT)
|
echo $GIT_MESSAGE | grep '\[ci\]' || (echo 'Exiting due to draft PR. Commit with [ci] to bypass.' ; echo 'EXIT_EARLY=true' >> $GITHUB_OUTPUT)
|
||||||
- name: Clone submodule ./test_util/std
|
- name: Clone submodule ./test_util/std
|
||||||
run: git submodule update --init --recursive --depth=1 -- ./test_util/std
|
run: git submodule update --init --recursive --depth=1 -- ./test_util/std
|
||||||
if: steps.exit_early.outputs.EXIT_EARLY != 'true'
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'')'
|
||||||
- name: Clone submodule ./test_util/wpt
|
- name: Clone submodule ./test_util/wpt
|
||||||
run: git submodule update --init --recursive --depth=1 -- ./test_util/wpt
|
run: git submodule update --init --recursive --depth=1 -- ./test_util/wpt
|
||||||
if: steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'test')
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.job == ''test''))'
|
||||||
- name: Clone submodule ./third_party
|
- name: Clone submodule ./third_party
|
||||||
run: git submodule update --init --recursive --depth=1 -- ./third_party
|
run: git submodule update --init --recursive --depth=1 -- ./third_party
|
||||||
if: steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'lint' || matrix.job == 'bench')
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.job == ''lint'' || matrix.job == ''bench''))'
|
||||||
- name: 'Create source tarballs (release, linux)'
|
- name: 'Create source tarballs (release, linux)'
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && (startsWith(matrix.os, 'ubuntu') &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (startsWith(matrix.os, 'ubuntu') &&
|
||||||
matrix.profile == 'release' &&
|
matrix.profile == 'release' &&
|
||||||
matrix.job == 'test' &&
|
matrix.job == 'test' &&
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
startsWith(github.ref, 'refs/tags/'))
|
startsWith(github.ref, 'refs/tags/')))
|
||||||
run: |-
|
run: |-
|
||||||
mkdir -p target/release
|
mkdir -p target/release
|
||||||
tar --exclude=".git*" --exclude=target --exclude=third_party/prebuilt \
|
tar --exclude=".git*" --exclude=target --exclude=third_party/prebuilt \
|
||||||
-czvf target/release/deno_src.tar.gz -C .. deno
|
-czvf target/release/deno_src.tar.gz -C .. deno
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
if: steps.exit_early.outputs.EXIT_EARLY != 'true'
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'')'
|
||||||
- if: steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'lint' || matrix.job == 'test')
|
- if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.job == ''lint'' || matrix.job == ''test''))'
|
||||||
name: Install Deno
|
name: Install Deno
|
||||||
uses: denoland/setup-deno@v1
|
uses: denoland/setup-deno@v1
|
||||||
with:
|
with:
|
||||||
|
@ -107,9 +111,9 @@ jobs:
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
if: steps.exit_early.outputs.EXIT_EARLY != 'true'
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'')'
|
||||||
- name: Remove unused versions of Python
|
- name: Remove unused versions of Python
|
||||||
if: 'steps.exit_early.outputs.EXIT_EARLY != ''true'' && (startsWith(matrix.os, ''windows''))'
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (startsWith(matrix.os, ''windows'')))'
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |-
|
run: |-
|
||||||
$env:PATH -split ";" |
|
$env:PATH -split ";" |
|
||||||
|
@ -120,15 +124,15 @@ jobs:
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
if: steps.exit_early.outputs.EXIT_EARLY != 'true'
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'')'
|
||||||
- name: Setup gcloud (unix)
|
- name: Setup gcloud (unix)
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && (runner.os != 'Windows' &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (runner.os != 'Windows' &&
|
||||||
matrix.profile == 'release' &&
|
matrix.profile == 'release' &&
|
||||||
matrix.job == 'test' &&
|
matrix.job == 'test' &&
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
(github.ref == 'refs/heads/main' ||
|
(github.ref == 'refs/heads/main' ||
|
||||||
startsWith(github.ref, 'refs/tags/')))
|
startsWith(github.ref, 'refs/tags/'))))
|
||||||
uses: google-github-actions/setup-gcloud@v0
|
uses: google-github-actions/setup-gcloud@v0
|
||||||
with:
|
with:
|
||||||
project_id: denoland
|
project_id: denoland
|
||||||
|
@ -136,12 +140,12 @@ jobs:
|
||||||
export_default_credentials: true
|
export_default_credentials: true
|
||||||
- name: Setup gcloud (windows)
|
- name: Setup gcloud (windows)
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && (runner.os == 'Windows' &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (runner.os == 'Windows' &&
|
||||||
matrix.job == 'test' &&
|
matrix.job == 'test' &&
|
||||||
matrix.profile == 'release' &&
|
matrix.profile == 'release' &&
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
(github.ref == 'refs/heads/main' ||
|
(github.ref == 'refs/heads/main' ||
|
||||||
startsWith(github.ref, 'refs/tags/')))
|
startsWith(github.ref, 'refs/tags/'))))
|
||||||
uses: google-github-actions/setup-gcloud@v0
|
uses: google-github-actions/setup-gcloud@v0
|
||||||
env:
|
env:
|
||||||
CLOUDSDK_PYTHON: '${{env.pythonLocation}}\python.exe'
|
CLOUDSDK_PYTHON: '${{env.pythonLocation}}\python.exe'
|
||||||
|
@ -151,13 +155,13 @@ jobs:
|
||||||
export_default_credentials: true
|
export_default_credentials: true
|
||||||
- name: Configure canary build
|
- name: Configure canary build
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'test' &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'test' &&
|
||||||
matrix.profile == 'release' &&
|
matrix.profile == 'release' &&
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
github.ref == 'refs/heads/main')
|
github.ref == 'refs/heads/main'))
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "DENO_CANARY=true" >> $GITHUB_ENV
|
run: echo "DENO_CANARY=true" >> $GITHUB_ENV
|
||||||
- if: steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.use_sysroot)
|
- if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.use_sysroot))'
|
||||||
name: Set up incremental LTO and sysroot build
|
name: Set up incremental LTO and sysroot build
|
||||||
run: |-
|
run: |-
|
||||||
# Avoid running man-db triggers, which sometimes takes several minutes
|
# Avoid running man-db triggers, which sometimes takes several minutes
|
||||||
|
@ -230,7 +234,7 @@ jobs:
|
||||||
then
|
then
|
||||||
deno --version
|
deno --version
|
||||||
fi
|
fi
|
||||||
if: steps.exit_early.outputs.EXIT_EARLY != 'true'
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'')'
|
||||||
- name: Cache Cargo home
|
- name: Cache Cargo home
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
@ -239,10 +243,10 @@ jobs:
|
||||||
~/.cargo/registry/cache
|
~/.cargo/registry/cache
|
||||||
~/.cargo/git/db
|
~/.cargo/git/db
|
||||||
key: '18-cargo-home-${{ matrix.os }}-${{ hashFiles(''Cargo.lock'') }}'
|
key: '18-cargo-home-${{ matrix.os }}-${{ hashFiles(''Cargo.lock'') }}'
|
||||||
if: steps.exit_early.outputs.EXIT_EARLY != 'true'
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'')'
|
||||||
- name: Restore cache build output (PR)
|
- name: Restore cache build output (PR)
|
||||||
uses: actions/cache/restore@v3
|
uses: actions/cache/restore@v3
|
||||||
if: 'steps.exit_early.outputs.EXIT_EARLY != ''true'' && (github.ref != ''refs/heads/main'' && !startsWith(github.ref, ''refs/tags/''))'
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (github.ref != ''refs/heads/main'' && !startsWith(github.ref, ''refs/tags/'')))'
|
||||||
with:
|
with:
|
||||||
path: |-
|
path: |-
|
||||||
./target
|
./target
|
||||||
|
@ -252,7 +256,7 @@ jobs:
|
||||||
key: never_saved
|
key: never_saved
|
||||||
restore-keys: '18-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-'
|
restore-keys: '18-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-'
|
||||||
- name: Apply and update mtime cache
|
- name: Apply and update mtime cache
|
||||||
if: steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.profile == 'release')
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.profile == ''release''))'
|
||||||
uses: ./.github/mtime_cache
|
uses: ./.github/mtime_cache
|
||||||
with:
|
with:
|
||||||
cache-path: ./target
|
cache-path: ./target
|
||||||
|
@ -265,126 +269,126 @@ jobs:
|
||||||
https://github.com/rust-lang/crates.io-index \
|
https://github.com/rust-lang/crates.io-index \
|
||||||
~/.cargo/registry/index/github.com-1ecc6299db9ec823
|
~/.cargo/registry/index/github.com-1ecc6299db9ec823
|
||||||
fi
|
fi
|
||||||
if: steps.exit_early.outputs.EXIT_EARLY != 'true'
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'')'
|
||||||
- name: test_format.js
|
- name: test_format.js
|
||||||
if: steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'lint')
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.job == ''lint''))'
|
||||||
run: deno run --unstable --allow-write --allow-read --allow-run ./tools/format.js --check
|
run: deno run --unstable --allow-write --allow-read --allow-run ./tools/format.js --check
|
||||||
- name: lint.js
|
- name: lint.js
|
||||||
if: steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'lint')
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.job == ''lint''))'
|
||||||
run: deno run --unstable --allow-write --allow-read --allow-run ./tools/lint.js
|
run: deno run --unstable --allow-write --allow-read --allow-run ./tools/lint.js
|
||||||
- name: Build debug
|
- name: Build debug
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && ((matrix.job == 'test' || matrix.job == 'bench') &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && ((matrix.job == 'test' || matrix.job == 'bench') &&
|
||||||
matrix.profile == 'debug')
|
matrix.profile == 'debug'))
|
||||||
run: cargo build --locked --all-targets
|
run: cargo build --locked --all-targets
|
||||||
- name: Build fastci
|
- name: Build fastci
|
||||||
if: steps.exit_early.outputs.EXIT_EARLY != 'true' && ((matrix.job == 'test' && matrix.profile == 'fastci'))
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && ((matrix.job == ''test'' && matrix.profile == ''fastci'')))'
|
||||||
run: cargo build --locked --all-targets
|
run: cargo build --locked --all-targets
|
||||||
env:
|
env:
|
||||||
CARGO_PROFILE_DEV_DEBUG: 0
|
CARGO_PROFILE_DEV_DEBUG: 0
|
||||||
- name: Build release
|
- name: Build release
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && ((matrix.job == 'test' || matrix.job == 'bench') &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && ((matrix.job == 'test' || matrix.job == 'bench') &&
|
||||||
matrix.profile == 'release' && (matrix.use_sysroot ||
|
matrix.profile == 'release' && (matrix.use_sysroot ||
|
||||||
(github.repository == 'denoland/deno' &&
|
(github.repository == 'denoland/deno' &&
|
||||||
(github.ref == 'refs/heads/main' ||
|
(github.ref == 'refs/heads/main' ||
|
||||||
startsWith(github.ref, 'refs/tags/')))))
|
startsWith(github.ref, 'refs/tags/'))))))
|
||||||
run: cargo build --release --locked --all-targets
|
run: cargo build --release --locked --all-targets
|
||||||
- name: Upload PR artifact (linux)
|
- name: Upload PR artifact (linux)
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'test' &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'test' &&
|
||||||
matrix.profile == 'release' && (matrix.use_sysroot ||
|
matrix.profile == 'release' && (matrix.use_sysroot ||
|
||||||
(github.repository == 'denoland/deno' &&
|
(github.repository == 'denoland/deno' &&
|
||||||
(github.ref == 'refs/heads/main' ||
|
(github.ref == 'refs/heads/main' ||
|
||||||
startsWith(github.ref, 'refs/tags/')))))
|
startsWith(github.ref, 'refs/tags/'))))))
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: 'deno-${{ github.event.number }}'
|
name: 'deno-${{ github.event.number }}'
|
||||||
path: target/release/deno
|
path: target/release/deno
|
||||||
- name: Pre-release (linux)
|
- name: Pre-release (linux)
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && (startsWith(matrix.os, 'ubuntu') &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (startsWith(matrix.os, 'ubuntu') &&
|
||||||
matrix.job == 'test' &&
|
matrix.job == 'test' &&
|
||||||
matrix.profile == 'release' &&
|
matrix.profile == 'release' &&
|
||||||
github.repository == 'denoland/deno')
|
github.repository == 'denoland/deno'))
|
||||||
run: |-
|
run: |-
|
||||||
cd target/release
|
cd target/release
|
||||||
zip -r deno-x86_64-unknown-linux-gnu.zip deno
|
zip -r deno-x86_64-unknown-linux-gnu.zip deno
|
||||||
./deno types > lib.deno.d.ts
|
./deno types > lib.deno.d.ts
|
||||||
- name: Pre-release (mac)
|
- name: Pre-release (mac)
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && (startsWith(matrix.os, 'macOS') &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (startsWith(matrix.os, 'macOS') &&
|
||||||
matrix.job == 'test' &&
|
matrix.job == 'test' &&
|
||||||
matrix.profile == 'release' &&
|
matrix.profile == 'release' &&
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')))
|
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))))
|
||||||
run: |-
|
run: |-
|
||||||
cd target/release
|
cd target/release
|
||||||
zip -r deno-x86_64-apple-darwin.zip deno
|
zip -r deno-x86_64-apple-darwin.zip deno
|
||||||
- name: Pre-release (windows)
|
- name: Pre-release (windows)
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && (startsWith(matrix.os, 'windows') &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (startsWith(matrix.os, 'windows') &&
|
||||||
matrix.job == 'test' &&
|
matrix.job == 'test' &&
|
||||||
matrix.profile == 'release' &&
|
matrix.profile == 'release' &&
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')))
|
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))))
|
||||||
run: Compress-Archive -CompressionLevel Optimal -Force -Path target/release/deno.exe -DestinationPath target/release/deno-x86_64-pc-windows-msvc.zip
|
run: Compress-Archive -CompressionLevel Optimal -Force -Path target/release/deno.exe -DestinationPath target/release/deno-x86_64-pc-windows-msvc.zip
|
||||||
- name: Upload canary to dl.deno.land (unix)
|
- name: Upload canary to dl.deno.land (unix)
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && (runner.os != 'Windows' &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (runner.os != 'Windows' &&
|
||||||
matrix.job == 'test' &&
|
matrix.job == 'test' &&
|
||||||
matrix.profile == 'release' &&
|
matrix.profile == 'release' &&
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
github.ref == 'refs/heads/main')
|
github.ref == 'refs/heads/main'))
|
||||||
run: 'gsutil -h "Cache-Control: public, max-age=3600" cp ./target/release/*.zip gs://dl.deno.land/canary/$(git rev-parse HEAD)/'
|
run: 'gsutil -h "Cache-Control: public, max-age=3600" cp ./target/release/*.zip gs://dl.deno.land/canary/$(git rev-parse HEAD)/'
|
||||||
- name: Upload canary to dl.deno.land (windows)
|
- name: Upload canary to dl.deno.land (windows)
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && (runner.os == 'Windows' &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (runner.os == 'Windows' &&
|
||||||
matrix.job == 'test' &&
|
matrix.job == 'test' &&
|
||||||
matrix.profile == 'release' &&
|
matrix.profile == 'release' &&
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
github.ref == 'refs/heads/main')
|
github.ref == 'refs/heads/main'))
|
||||||
env:
|
env:
|
||||||
CLOUDSDK_PYTHON: '${{env.pythonLocation}}\python.exe'
|
CLOUDSDK_PYTHON: '${{env.pythonLocation}}\python.exe'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: 'gsutil -h "Cache-Control: public, max-age=3600" cp ./target/release/*.zip gs://dl.deno.land/canary/$(git rev-parse HEAD)/'
|
run: 'gsutil -h "Cache-Control: public, max-age=3600" cp ./target/release/*.zip gs://dl.deno.land/canary/$(git rev-parse HEAD)/'
|
||||||
- name: Test debug
|
- name: Test debug
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'test' && matrix.profile == 'debug' &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'test' && matrix.profile == 'debug' &&
|
||||||
!startsWith(github.ref, 'refs/tags/'))
|
!startsWith(github.ref, 'refs/tags/')))
|
||||||
run: |-
|
run: |-
|
||||||
cargo test --locked --doc
|
cargo test --locked --doc
|
||||||
cargo test --locked
|
cargo test --locked
|
||||||
- name: Test fastci
|
- name: Test fastci
|
||||||
if: steps.exit_early.outputs.EXIT_EARLY != 'true' && ((matrix.job == 'test' && matrix.profile == 'fastci'))
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && ((matrix.job == ''test'' && matrix.profile == ''fastci'')))'
|
||||||
run: cargo test --locked
|
run: cargo test --locked
|
||||||
env:
|
env:
|
||||||
CARGO_PROFILE_DEV_DEBUG: 0
|
CARGO_PROFILE_DEV_DEBUG: 0
|
||||||
- name: Test release
|
- name: Test release
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'test' && matrix.profile == 'release' &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'test' && matrix.profile == 'release' &&
|
||||||
(matrix.use_sysroot || (
|
(matrix.use_sysroot || (
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
github.ref == 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/'))))
|
github.ref == 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')))))
|
||||||
run: cargo test --release --locked
|
run: cargo test --release --locked
|
||||||
- name: Check deno binary
|
- name: Check deno binary
|
||||||
if: 'steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.profile == ''release'' && startsWith(github.ref, ''refs/tags/''))'
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.profile == ''release'' && startsWith(github.ref, ''refs/tags/'')))'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: target/release/deno eval "console.log(1+2)" | grep 3
|
run: target/release/deno eval "console.log(1+2)" | grep 3
|
||||||
env:
|
env:
|
||||||
NO_COLOR: 1
|
NO_COLOR: 1
|
||||||
- name: Check deno binary (in sysroot)
|
- name: Check deno binary (in sysroot)
|
||||||
if: steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.profile == 'release' && matrix.use_sysroot)
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.profile == ''release'' && matrix.use_sysroot))'
|
||||||
run: sudo chroot /sysroot "$(pwd)/target/release/deno" --version
|
run: sudo chroot /sysroot "$(pwd)/target/release/deno" --version
|
||||||
- name: Configure hosts file for WPT
|
- name: Configure hosts file for WPT
|
||||||
if: 'steps.exit_early.outputs.EXIT_EARLY != ''true'' && (startsWith(matrix.os, ''ubuntu'') && matrix.job == ''test'')'
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (startsWith(matrix.os, ''ubuntu'') && matrix.job == ''test''))'
|
||||||
run: ./wpt make-hosts-file | sudo tee -a /etc/hosts
|
run: ./wpt make-hosts-file | sudo tee -a /etc/hosts
|
||||||
working-directory: test_util/wpt/
|
working-directory: test_util/wpt/
|
||||||
- name: Run web platform tests (debug)
|
- name: Run web platform tests (debug)
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && (startsWith(matrix.os, 'ubuntu') && matrix.job == 'test' &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (startsWith(matrix.os, 'ubuntu') && matrix.job == 'test' &&
|
||||||
matrix.profile == 'debug' &&
|
matrix.profile == 'debug' &&
|
||||||
github.ref == 'refs/heads/main')
|
github.ref == 'refs/heads/main'))
|
||||||
env:
|
env:
|
||||||
DENO_BIN: ./target/debug/deno
|
DENO_BIN: ./target/debug/deno
|
||||||
run: |-
|
run: |-
|
||||||
|
@ -398,8 +402,8 @@ jobs:
|
||||||
./tools/wpt.ts run --quiet --binary="$DENO_BIN"
|
./tools/wpt.ts run --quiet --binary="$DENO_BIN"
|
||||||
- name: Run web platform tests (release)
|
- name: Run web platform tests (release)
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && (startsWith(matrix.os, 'ubuntu') && matrix.job == 'test' &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (startsWith(matrix.os, 'ubuntu') && matrix.job == 'test' &&
|
||||||
matrix.profile == 'release' && !startsWith(github.ref, 'refs/tags/'))
|
matrix.profile == 'release' && !startsWith(github.ref, 'refs/tags/')))
|
||||||
env:
|
env:
|
||||||
DENO_BIN: ./target/release/deno
|
DENO_BIN: ./target/release/deno
|
||||||
run: |-
|
run: |-
|
||||||
|
@ -417,11 +421,11 @@ jobs:
|
||||||
- name: Upload wpt results to dl.deno.land
|
- name: Upload wpt results to dl.deno.land
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && (runner.os == 'Linux' &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (runner.os == 'Linux' &&
|
||||||
matrix.job == 'test' &&
|
matrix.job == 'test' &&
|
||||||
matrix.profile == 'release' &&
|
matrix.profile == 'release' &&
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
github.ref == 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/'))
|
github.ref == 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')))
|
||||||
run: |-
|
run: |-
|
||||||
gzip ./wptreport.json
|
gzip ./wptreport.json
|
||||||
gsutil -h "Cache-Control: public, max-age=3600" cp ./wpt.json gs://dl.deno.land/wpt/$(git rev-parse HEAD).json
|
gsutil -h "Cache-Control: public, max-age=3600" cp ./wpt.json gs://dl.deno.land/wpt/$(git rev-parse HEAD).json
|
||||||
|
@ -431,11 +435,11 @@ jobs:
|
||||||
- name: Upload wpt results to wpt.fyi
|
- name: Upload wpt results to wpt.fyi
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && (runner.os == 'Linux' &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (runner.os == 'Linux' &&
|
||||||
matrix.job == 'test' &&
|
matrix.job == 'test' &&
|
||||||
matrix.profile == 'release' &&
|
matrix.profile == 'release' &&
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
github.ref == 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/'))
|
github.ref == 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')))
|
||||||
env:
|
env:
|
||||||
WPT_FYI_USER: deno
|
WPT_FYI_USER: deno
|
||||||
WPT_FYI_PW: '${{ secrets.WPT_FYI_PW }}'
|
WPT_FYI_PW: '${{ secrets.WPT_FYI_PW }}'
|
||||||
|
@ -444,13 +448,13 @@ jobs:
|
||||||
./target/release/deno run --allow-all --lock=tools/deno.lock.json \
|
./target/release/deno run --allow-all --lock=tools/deno.lock.json \
|
||||||
./tools/upload_wptfyi.js $(git rev-parse HEAD) --ghstatus
|
./tools/upload_wptfyi.js $(git rev-parse HEAD) --ghstatus
|
||||||
- name: Run benchmarks
|
- name: Run benchmarks
|
||||||
if: 'steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.job == ''bench'' && !startsWith(github.ref, ''refs/tags/''))'
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.job == ''bench'' && !startsWith(github.ref, ''refs/tags/'')))'
|
||||||
run: cargo bench --locked
|
run: cargo bench --locked
|
||||||
- name: Post Benchmarks
|
- name: Post Benchmarks
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'bench' &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'bench' &&
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
github.ref == 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/'))
|
github.ref == 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')))
|
||||||
env:
|
env:
|
||||||
DENOBOT_PAT: '${{ secrets.DENOBOT_PAT }}'
|
DENOBOT_PAT: '${{ secrets.DENOBOT_PAT }}'
|
||||||
run: |-
|
run: |-
|
||||||
|
@ -466,30 +470,30 @@ jobs:
|
||||||
git commit --message "Update benchmarks"
|
git commit --message "Update benchmarks"
|
||||||
git push origin gh-pages
|
git push origin gh-pages
|
||||||
- name: Build product size info
|
- name: Build product size info
|
||||||
if: 'steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.job != ''lint'' && matrix.profile != ''fastci'' && github.repository == ''denoland/deno'' && (github.ref == ''refs/heads/main'' || startsWith(github.ref, ''refs/tags/'')))'
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.job != ''lint'' && matrix.profile != ''fastci'' && github.repository == ''denoland/deno'' && (github.ref == ''refs/heads/main'' || startsWith(github.ref, ''refs/tags/''))))'
|
||||||
run: |-
|
run: |-
|
||||||
du -hd1 "./target/${{ matrix.profile }}"
|
du -hd1 "./target/${{ matrix.profile }}"
|
||||||
du -ha "./target/${{ matrix.profile }}/deno"
|
du -ha "./target/${{ matrix.profile }}/deno"
|
||||||
- name: Worker info
|
- name: Worker info
|
||||||
if: steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'bench')
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.job == ''bench''))'
|
||||||
run: |-
|
run: |-
|
||||||
cat /proc/cpuinfo
|
cat /proc/cpuinfo
|
||||||
cat /proc/meminfo
|
cat /proc/meminfo
|
||||||
- name: Upload release to dl.deno.land (unix)
|
- name: Upload release to dl.deno.land (unix)
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && (runner.os != 'Windows' &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (runner.os != 'Windows' &&
|
||||||
matrix.job == 'test' &&
|
matrix.job == 'test' &&
|
||||||
matrix.profile == 'release' &&
|
matrix.profile == 'release' &&
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
startsWith(github.ref, 'refs/tags/'))
|
startsWith(github.ref, 'refs/tags/')))
|
||||||
run: 'gsutil -h "Cache-Control: public, max-age=3600" cp ./target/release/*.zip gs://dl.deno.land/release/${GITHUB_REF#refs/*/}/'
|
run: 'gsutil -h "Cache-Control: public, max-age=3600" cp ./target/release/*.zip gs://dl.deno.land/release/${GITHUB_REF#refs/*/}/'
|
||||||
- name: Upload release to dl.deno.land (windows)
|
- name: Upload release to dl.deno.land (windows)
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && (runner.os == 'Windows' &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (runner.os == 'Windows' &&
|
||||||
matrix.job == 'test' &&
|
matrix.job == 'test' &&
|
||||||
matrix.profile == 'release' &&
|
matrix.profile == 'release' &&
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
startsWith(github.ref, 'refs/tags/'))
|
startsWith(github.ref, 'refs/tags/')))
|
||||||
env:
|
env:
|
||||||
CLOUDSDK_PYTHON: '${{env.pythonLocation}}\python.exe'
|
CLOUDSDK_PYTHON: '${{env.pythonLocation}}\python.exe'
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -497,20 +501,20 @@ jobs:
|
||||||
- name: Create release notes
|
- name: Create release notes
|
||||||
shell: bash
|
shell: bash
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'test' &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'test' &&
|
||||||
matrix.profile == 'release' &&
|
matrix.profile == 'release' &&
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
startsWith(github.ref, 'refs/tags/'))
|
startsWith(github.ref, 'refs/tags/')))
|
||||||
run: |-
|
run: |-
|
||||||
export PATH=$PATH:$(pwd)/target/release
|
export PATH=$PATH:$(pwd)/target/release
|
||||||
./tools/release/05_create_release_notes.ts
|
./tools/release/05_create_release_notes.ts
|
||||||
- name: Upload release to GitHub
|
- name: Upload release to GitHub
|
||||||
uses: softprops/action-gh-release@v0.1.15
|
uses: softprops/action-gh-release@v0.1.15
|
||||||
if: |-
|
if: |-
|
||||||
steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'test' &&
|
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'test' &&
|
||||||
matrix.profile == 'release' &&
|
matrix.profile == 'release' &&
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
startsWith(github.ref, 'refs/tags/'))
|
startsWith(github.ref, 'refs/tags/')))
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
with:
|
with:
|
||||||
|
@ -524,7 +528,7 @@ jobs:
|
||||||
draft: true
|
draft: true
|
||||||
- name: Save cache build output (main)
|
- name: Save cache build output (main)
|
||||||
uses: actions/cache/save@v3
|
uses: actions/cache/save@v3
|
||||||
if: steps.exit_early.outputs.EXIT_EARLY != 'true' && ((matrix.profile == 'release' || matrix.profile == 'fastci') && github.ref == 'refs/heads/main')
|
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && ((matrix.profile == ''release'' || matrix.profile == ''fastci'') && github.ref == ''refs/heads/main''))'
|
||||||
with:
|
with:
|
||||||
path: |-
|
path: |-
|
||||||
./target
|
./target
|
||||||
|
|
Loading…
Reference in a new issue