Skip to content

Commit 0f702cc

Browse files
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 <[email protected]>
1 parent bb12998 commit 0f702cc

File tree

3 files changed

+34
-5
lines changed

3 files changed

+34
-5
lines changed

.github/workflows/example-builds-nightly-defaultarch.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
julia-version: [nightly, 1.10-nightly]
22-
os: [ubuntu-latest, macOS-latest, windows-latest]
22+
os:
23+
- ubuntu-latest
24+
- windows-latest
25+
- macos-11 # Intel
26+
- macos-12 # Intel
27+
- macos-13 # Intel
28+
- macos-14 # Apple Silicon
29+
- macos-latest # Currently Intel, but will probably point to Apple Silicon in the future
2330

2431
steps:
2532
- uses: actions/checkout@v4

lib/installer.js

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

src/installer.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,19 @@ function getNightlyFileName(arch: string): string {
128128
} else if (osPlat == 'darwin') {
129129
if (arch == 'x86') {
130130
throw new Error('32-bit Julia is not available on macOS')
131+
} else if (arch == 'aarch64') {
132+
versionExt = '-macaarch64'
133+
} else {
134+
versionExt = '-mac64'
131135
}
132-
versionExt = '-mac64'
133136
} else if (osPlat === 'linux') {
134-
versionExt = arch == 'x64' ? '-linux64' : '-linux32'
137+
if (arch == 'x86') {
138+
versionExt = '-linux32'
139+
} else if (arch == 'aarch64') {
140+
versionExt = '-linux-aarch64'
141+
} else {
142+
versionExt = '-linux64'
143+
}
135144
} else {
136145
throw new Error(`Platform ${osPlat} is not supported`)
137146
}

0 commit comments

Comments
 (0)