mirror of
https://github.com/julia-actions/setup-julia.git
synced 2026-03-03 12:26:54 +08:00
Run make everything-from-scratch, and check-in
This commit is contained in:
8
lib/setup-julia.js
generated
8
lib/setup-julia.js
generated
@@ -83,6 +83,7 @@ function run() {
|
||||
const versionInput = core.getInput('version').trim();
|
||||
const includePrereleases = core.getInput('include-all-prereleases').trim() == 'true';
|
||||
const originalArchInput = core.getInput('arch').trim();
|
||||
const forceArch = core.getInput('force-arch').trim() == 'true';
|
||||
const projectInput = core.getInput('project').trim(); // Julia project file
|
||||
// It can easily happen that, for example, a workflow file contains an input `version: ${{ matrix.julia-version }}`
|
||||
// while the strategy matrix only contains a key `${{ matrix.version }}`.
|
||||
@@ -99,7 +100,12 @@ 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 (Apple Silicon) architecture. You may have meant to use the "aarch64" arch instead (or left it unspecified for the correct default).');
|
||||
if (forceArch) {
|
||||
core.warning('[setup-julia] x64 arch has been requested on a macOS runner that has an arm64 (Apple Silicon) architecture. The "force-arch" input is set to "true", so proceeding with x64 installation. Note that this will mean Julia will be run under Rosetta emulation.');
|
||||
}
|
||||
else {
|
||||
throw new Error('[setup-julia] x64 arch has been requested on a macOS runner that has an arm64 (Apple Silicon) architecture. You may have meant to use the "aarch64" arch instead (or "default" or left it unspecified for the correct default). To force the use of x64 on this runner, set the "force-arch" input to "true".');
|
||||
}
|
||||
}
|
||||
let processedArchInput;
|
||||
if (originalArchInput == "default") {
|
||||
|
||||
Reference in New Issue
Block a user