Skip to content

Commit 6a1a892

Browse files
committed
Fix Arm CI
1 parent f5f9ba6 commit 6a1a892

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/UnitTestArm.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- master
77
pull_request:
88
workflow_dispatch:
9+
permissions:
10+
actions: write
11+
contents: read
912
jobs:
1013
test:
1114
runs-on: ${{ matrix.os }}
@@ -19,7 +22,10 @@ jobs:
1922

2023
steps:
2124
- uses: actions/checkout@v4
22-
25+
- uses: julia-actions/setup-julia@v2
26+
with:
27+
version: ${{ matrix.julia-version }}
28+
- uses: julia-actions/cache@v1
2329
- name: Download Julia Binary
2430
run: >
2531
julia -e '
@@ -40,10 +46,9 @@ jobs:
4046
4147
- name: Extract Julia Files
4248
run: |
43-
cd /tmp
44-
tar -xzf julia-aarch64.tar.gz -C /home/runner/work/
45-
mv /home/runner/work/julia-*/ /home/runner/work/julia/
46-
rm julia-aarch64.tar.gz
49+
mkdir -p /home/runner/work/julia/
50+
tar -xf /tmp/julia-aarch64.tar.gz --strip-components=1 -C /home/runner/work/julia/
51+
rm /tmp/julia-aarch64.tar.gz
4752
4853
- uses: uraimo/[email protected]
4954
name: Unit Test
@@ -52,14 +57,14 @@ jobs:
5257
distro: ${{ matrix.distro }}
5358
dockerRunArgs: |
5459
-v "/home/runner/work/julia:/home/runner/work/julia"
55-
-v "/home/runner/.julia/registries/General:/root/.julia/registries/General"
60+
-v "/home/runner/.julia/registries:/root/.julia/registries"
5661
--net=host
5762
install: |
5863
ln -s /home/runner/work/julia/bin/julia /usr/local/bin/julia
5964
echo /home/runner/work/julia/lib > /etc/ld.so.conf.d/julia.conf
6065
mkdir -p /root/.julia/registries/General
6166
run: |
62-
julia -e 'using InteractiveUtils; versioninfo();'
67+
julia --compile=min -O0 -e 'using InteractiveUtils; versioninfo();'
6368
julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.build(); Pkg.test(coverage=true)'
6469
- uses: julia-actions/julia-processcoverage@v1
6570
- uses: codecov/codecov-action@v4

0 commit comments

Comments
 (0)