Skip to content

Commit

Permalink
ci: use windows-xl runner for --release on main (#19429)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored and bartlomieju committed Jun 8, 2023
1 parent d6271e2 commit b51be87
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@ const cacheVersion = 36;
const Runners = (() => {
const ubuntuRunner = "ubuntu-22.04";
const ubuntuXlRunner = "ubuntu-22.04-xl";
const windowsRunner = "windows-2022";
const windowsXlRunner = "windows-2022-xl";

return {
ubuntuXl:
`\${{ github.repository == 'denoland/deno' && '${ubuntuXlRunner}' || '${ubuntuRunner}' }}`,
ubuntu: ubuntuRunner,
linux: ubuntuRunner,
macos: "macos-12",
windows: "windows-2022",
windows: windowsRunner,
windowsXl:
`\${{ github.repository == 'denoland/deno' && '${windowsXlRunner}' || '${windowsRunner}' }}`,
};
})();
const prCacheKeyPrefix =
Expand Down Expand Up @@ -320,7 +324,7 @@ const ci = {
job: "test",
profile: "debug",
}, {
os: Runners.windows,
os: Runners.windowsXl,
job: "test",
profile: "release",
skip_pr: true,
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ jobs:
job: test
profile: debug
os_display_name: windows-x86_64
- os: windows-2022
- os: '${{ github.repository == ''denoland/deno'' && ''windows-2022-xl'' || ''windows-2022'' }}'
job: test
profile: release
skip_pr: true
runner: '${{ github.event_name == ''pull_request'' && ''ubuntu-22.04'' || ''windows-2022'' }}'
runner: '${{ github.event_name == ''pull_request'' && ''ubuntu-22.04'' || github.repository == ''denoland/deno'' && ''windows-2022-xl'' || ''windows-2022'' }}'
os_display_name: windows-x86_64
- os: '${{ github.repository == ''denoland/deno'' && ''ubuntu-22.04-xl'' || ''ubuntu-22.04'' }}'
job: test
Expand Down

0 comments on commit b51be87

Please sign in to comment.