55 branches :
66 - master
77 tags : ' *'
8+
9+ concurrency :
10+ # group by workflow and ref; the last slightly strange component ensures that for pull
11+ # requests, we limit to 1 concurrent job, but for the default repository branch we don't
12+ group : ${{ github.workflow }}-${{ github.ref }}-${{ github.ref_name != github.event.repository.default_branch || github.run_number }}
13+ # Cancel intermediate builds, but only if it is a pull request build.
14+ cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
15+
16+ # needed to allow julia-actions/cache to delete old caches that it has created
17+ permissions :
18+ actions : write
19+ contents : read
20+
821jobs :
922 test :
1023 name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -21,30 +34,22 @@ jobs:
2134 - macOS-latest
2235 - windows-latest
2336 arch :
24- - x64
37+ - ' ' # default arch, usually x64 but for macOS also aarch64
2538 - x86
2639 exclude :
27- - os : macOS -latest
40+ - os : macos -latest # Apple Silicon
2841 arch : x86
42+ - os : macos-latest # Apple Silicon
43+ version : ' 1.0'
44+ arch : ' '
2945 steps :
3046 - uses : actions/checkout@v4
3147 - uses : julia-actions/setup-julia@v2
3248 with :
3349 version : ${{ matrix.version }}
34- arch : ${{ matrix.arch }}
35- - uses : actions/cache@v4
36- env :
37- cache-name : cache-artifacts
38- with :
39- path : ~/.julia/artifacts
40- key : ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
41- restore-keys : |
42- ${{ runner.os }}-test-${{ env.cache-name }}-
43- ${{ runner.os }}-test-
44- ${{ runner.os }}-
50+ arch : ${{ (matrix.arch == '') && runner.arch || matrix.arch }}
51+ - uses : julia-actions/cache@v2
4552 - uses : julia-actions/julia-buildpkg@v1
4653 - uses : julia-actions/julia-runtest@v1
4754 - uses : julia-actions/julia-processcoverage@v1
4855 - uses : codecov/codecov-action@v5
49- with :
50- file : lcov.info
0 commit comments