Skip to content

Commit bd00dfc

Browse files
authored
Avoid selecting pre-release in ARM CI (#244)
1 parent d977b44 commit bd00dfc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/UnitTestArm.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ jobs:
2929
else;
3030
path = download("https://julialang-s3.julialang.org/bin/versions.json");
3131
json = JSON.parsefile(path);
32-
rm(path);
32+
try rm(path) catch end;
33+
vspec = Pkg.Types.VersionSpec("${{ matrix.julia-version }}");
3334
a(f) = f["arch"] == "${{ matrix.arch }}" && f["os"] == "linux" && !occursin("musl", f["triplet"]);
34-
m = filter(json) do v; VersionNumber(v[1]) in Pkg.Types.VersionSpec("${{ matrix.julia-version }}") && any(a, v[2]["files"]); end;
35+
m = filter(json) do v; vn = VersionNumber(v[1]); vn in vspec && isempty(vn.prerelease) && any(a, v[2]["files"]); end;
3536
v = sort(VersionNumber.(keys(m)))[end];
3637
url = filter(a, json[string(v)]["files"])[1]["url"];
3738
end;
@@ -44,7 +45,7 @@ jobs:
4445
mv /home/runner/work/julia-*/ /home/runner/work/julia/
4546
rm julia-aarch64.tar.gz
4647
47-
- uses: uraimo/[email protected].7
48+
- uses: uraimo/[email protected].9
4849
name: Unit Test
4950
with:
5051
arch: ${{ matrix.arch }}

0 commit comments

Comments
 (0)