Skip to content

Commit e8ce846

Browse files
committed
CI: don't force arch unless needed
... so that e.g. macOS ARM runners can use a native Julia However for Julia 1.0 on macOS we need to take special care, see <https://discourse.julialang.org/t/117019> for details.
1 parent 15f62da commit e8ce846

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/CI.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,25 @@ jobs:
2626
# - 'nightly'
2727
os:
2828
- ubuntu-latest
29-
- macOS-latest
29+
- macos-latest
3030
- windows-latest
3131
arch:
32-
- x64
32+
- ''
33+
exclude:
34+
- os: macos-latest # Apple Silicon
35+
version: '1.0'
36+
arch: ''
37+
include:
38+
- os: macos-latest # Apple Silicon
39+
version: '1.0'
40+
# Install an x86_64 build of Julia, and run it under Rosetta 2 emulation
41+
arch: 'x64'
3342
steps:
3443
- uses: actions/checkout@v4
3544
- uses: julia-actions/setup-julia@v2
3645
with:
3746
version: ${{ matrix.version }}
38-
arch: ${{ matrix.arch }}
47+
arch: ${{ (matrix.arch == '') && runner.arch || matrix.arch }}
3948
- uses: julia-actions/cache@v2
4049
- uses: julia-actions/julia-buildpkg@v1
4150
- uses: julia-actions/julia-runtest@v1

0 commit comments

Comments
 (0)