Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from Feb 11, 2024

Conversation

benlorenz
Copy link
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
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
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
50 checks passed
@DilumAluthge
Copy link
Member

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

@ViralBShah
Copy link
Contributor

ViralBShah commented Feb 11, 2024

Nice! Is using juliaup to install Julia more reliable?

@DilumAluthge
Copy link
Member

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

@IanButterworth
Copy link
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.

None yet

4 participants