forked from denoland/deno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): use windows-2022 runner on skipped release job on PRs (den…
- Loading branch information
Showing
2 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,13 @@ | |
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. | ||
import * as yaml from "https://deno.land/[email protected]/encoding/yaml.ts"; | ||
|
||
const windowsRunnerCondition = | ||
"github.repository == 'denoland/deno' && 'windows-2022-xl' || 'windows-2022'"; | ||
const Runners = { | ||
linux: | ||
"${{ github.repository == 'denoland/deno' && 'ubuntu-20.04-xl' || 'ubuntu-20.04' }}", | ||
macos: "macos-12", | ||
windows: | ||
"${{ github.repository == 'denoland/deno' && 'windows-2022-xl' || 'windows-2022' }}", | ||
windows: `\${{ ${windowsRunnerCondition} }}`, | ||
}; | ||
|
||
const installPkgsCommand = | ||
|
@@ -200,7 +201,7 @@ const ci = { | |
jobs: { | ||
build: { | ||
name: "${{ matrix.job }} ${{ matrix.profile }} ${{ matrix.os }}", | ||
"runs-on": "${{ matrix.os }}", | ||
"runs-on": "${{ matrix.runner || matrix.os }}", | ||
"timeout-minutes": 120, | ||
strategy: { | ||
matrix: { | ||
|
@@ -223,6 +224,9 @@ const ci = { | |
}, | ||
{ | ||
os: Runners.windows, | ||
// use a free runner on PRs since this will be skipped | ||
runner: | ||
`\${{ github.event_name == 'pull_request' && 'windows-2022' || (${windowsRunnerCondition}) }}`, | ||
job: "test", | ||
profile: "release", | ||
skip_pr: true, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters