Skip to content

Commit

Permalink
add warning if requesting x64 on apple silicon runners
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Nov 18, 2024
1 parent 2fa1802 commit 138418b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/setup-julia.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/setup-julia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ async function run() {
throw new Error(`Arch input must not be null`)
}

if (originalArchInput == 'x64' && os.platform() == 'darwin' && os.arch() == 'arm64') {
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 it unspecified for the correct default).')
}

let processedArchInput: string;
if (originalArchInput == "default") {
// If the user sets the `arch` input to `default`, then we use the
Expand Down

0 comments on commit 138418b

Please sign in to comment.