Skip to content

Commit 582765a

Browse files
add warning if requesting x64 on apple silicon runners
1 parent 2fa1802 commit 582765a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

lib/setup-julia.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/setup-julia.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ async function run() {
6262
throw new Error(`Arch input must not be null`)
6363
}
6464

65+
if (originalArchInput == 'x64' && os.platform() == 'darwin' && os.arch() == 'arm64') {
66+
core.warning('[setup-julia] x64 arch has been requested on a macOS runner that has an arm64 architecture. You may have meant to use the "aarch64" arch instead (or left if unspecified for the correct default).')
67+
}
68+
6569
let processedArchInput: string;
6670
if (originalArchInput == "default") {
6771
// If the user sets the `arch` input to `default`, then we use the

0 commit comments

Comments
 (0)