mirror of
https://github.com/denoland/deno.git
synced 2024-12-28 01:59:06 -05:00
chore(ci): only install node for the benchmarks (#17371)
This commit is contained in:
parent
9e5949fa52
commit
3d95d1c723
2 changed files with 17 additions and 7 deletions
14
.github/workflows/ci.generate.ts
vendored
Executable file → Normal file
14
.github/workflows/ci.generate.ts
vendored
Executable file → Normal file
|
@ -323,7 +323,11 @@ const ci = {
|
|||
...installDenoStep,
|
||||
},
|
||||
...installPythonSteps,
|
||||
installNodeStep,
|
||||
{
|
||||
// only necessary for benchmarks
|
||||
if: "matrix.job == 'bench'",
|
||||
...installNodeStep,
|
||||
},
|
||||
authenticateWithGoogleCloud,
|
||||
{
|
||||
name: "Setup gcloud (unix)",
|
||||
|
@ -377,15 +381,19 @@ const ci = {
|
|||
name: "Log versions",
|
||||
shell: "bash",
|
||||
run: [
|
||||
"node -v",
|
||||
"python --version",
|
||||
"rustc --version",
|
||||
"cargo --version",
|
||||
"# Deno is installed when linting.",
|
||||
// Deno is installed when linting.
|
||||
'if [ "${{ matrix.job }}" == "lint" ]',
|
||||
"then",
|
||||
" deno --version",
|
||||
"fi",
|
||||
// Node is installed for benchmarks.
|
||||
'if [ "${{ matrix.job }}" == "bench" ]',
|
||||
"then",
|
||||
" node -v",
|
||||
"fi",
|
||||
].join("\n"),
|
||||
},
|
||||
{
|
||||
|
|
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -120,11 +120,11 @@ jobs:
|
|||
Where-Object { Test-Path "$_\python.exe" } |
|
||||
Select-Object -Skip 1 |
|
||||
ForEach-Object { Move-Item "$_" "$_.disabled" }
|
||||
- name: Install Node
|
||||
- if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.job == ''bench''))'
|
||||
name: Install Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'')'
|
||||
- name: Authenticate with Google Cloud
|
||||
if: |-
|
||||
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.profile == 'release' &&
|
||||
|
@ -234,15 +234,17 @@ jobs:
|
|||
- name: Log versions
|
||||
shell: bash
|
||||
run: |-
|
||||
node -v
|
||||
python --version
|
||||
rustc --version
|
||||
cargo --version
|
||||
# Deno is installed when linting.
|
||||
if [ "${{ matrix.job }}" == "lint" ]
|
||||
then
|
||||
deno --version
|
||||
fi
|
||||
if [ "${{ matrix.job }}" == "bench" ]
|
||||
then
|
||||
node -v
|
||||
fi
|
||||
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'')'
|
||||
- name: Cache Cargo home
|
||||
uses: actions/cache@v3
|
||||
|
|
Loading…
Reference in a new issue