Skip to content

Fix the Apple Silicon (macOS aarch64 / arm64) URLs for Julia nightly#220

Merged
DilumAluthge merged 4 commits intojulia-actions:masterfrom
benlorenz:bl/aarch64nightly
Feb 11, 2024
Merged

Fix the Apple Silicon (macOS aarch64 / arm64) URLs for Julia nightly#220
DilumAluthge merged 4 commits intojulia-actions:masterfrom
benlorenz:bl/aarch64nightly

Conversation

@benlorenz
Copy link
Copy Markdown
Contributor

@benlorenz benlorenz commented Feb 10, 2024

Testing with julia nightly on macos-14 (aarch64) currently fails with:

Run julia-actions/setup-julia@v1
Download of https://julialangnightlies-s3.julialang.org/bin/mac/aarch64/julia-latest-mac64.tar.gz failed, trying again. Error: Error: Unexpected HTTP response: 404

The filename is slightly wrong and should have macaarch64 instead of mac64, this PR tries to fix this for linux and macOS.
I also added macOS-14 (for the new M1 runners) to the nightly tests.

Note that these URLs are a bit of a guesswork. On the official nightly downloads page they have a different format using a slightly more homogeneous pattern (at least for linux and macos):

  • x86_64, i686 and aarch64 in the baseurl instead of x64 and x86.
  • macos instead of mac in the baseurl.
  • filename julia-latest-<osname>-<arch>
    Adjusting to this pattern could simplify the code a bit even though it would still need a bunch of extra cases for windows.
    But I don't really know anything about the stability of all those URLs.

Edit: Looks like the new tests on the M1 were successful: https://github.com/julia-actions/setup-julia/actions/runs/7855176535/job/21436628690?pr=220#step:5:15

@DilumAluthge
Copy link
Copy Markdown
Member

This is great, thank you @benlorenz! I'll take a look.

@SaschaMann It would be great if you could take a look too.

cc: @ViralBShah - once this is merged and a new release is made, we can use this in the SparseArrays.jl repo.

@DilumAluthge DilumAluthge changed the title fix aarch64 urls for nightly Fix the Apple Silicon (macOS aarch64 / arm64) URLs for Julia nightly Feb 11, 2024
Copy link
Copy Markdown
Member

@DilumAluthge DilumAluthge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@DilumAluthge DilumAluthge merged commit 0f702cc into julia-actions:master Feb 11, 2024
@DilumAluthge
Copy link
Copy Markdown
Member

@SaschaMann or @IanButterworth If you have time, can you do a post-merge review?

@ViralBShah
Copy link
Copy Markdown
Contributor

ViralBShah commented Feb 11, 2024

Nice! Is using juliaup to install Julia more reliable?

@DilumAluthge
Copy link
Copy Markdown
Member

I don't think we need the added complexity of juliaup for this action.

@IanButterworth
Copy link
Copy Markdown
Member

#221

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants