mirror of
https://github.com/julia-actions/setup-julia.git
synced 2026-02-12 02:56:54 +08:00
Fix the Apple Silicon (macOS aarch64 / arm64) URLs for Julia nightly (#220)
* fix aarch64 urls for nightly * rebuild js for aarch64 nightly * test nightly on apple m1 (aarch64) * Run on more macOS versions, and add a few comments --------- Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
This commit is contained in:
17
lib/installer.js
generated
17
lib/installer.js
generated
@@ -156,10 +156,23 @@ function getNightlyFileName(arch) {
|
||||
if (arch == 'x86') {
|
||||
throw new Error('32-bit Julia is not available on macOS');
|
||||
}
|
||||
versionExt = '-mac64';
|
||||
else if (arch == 'aarch64') {
|
||||
versionExt = '-macaarch64';
|
||||
}
|
||||
else {
|
||||
versionExt = '-mac64';
|
||||
}
|
||||
}
|
||||
else if (osPlat === 'linux') {
|
||||
versionExt = arch == 'x64' ? '-linux64' : '-linux32';
|
||||
if (arch == 'x86') {
|
||||
versionExt = '-linux32';
|
||||
}
|
||||
else if (arch == 'aarch64') {
|
||||
versionExt = '-linux-aarch64';
|
||||
}
|
||||
else {
|
||||
versionExt = '-linux64';
|
||||
}
|
||||
}
|
||||
else {
|
||||
throw new Error(`Platform ${osPlat} is not supported`);
|
||||
|
||||
Reference in New Issue
Block a user