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 }}
@@ -14,32 +27,34 @@ jobs:
1427 matrix :
1528 version :
1629 - ' 1.0'
30+ - ' lts'
31+ - ' 1'
1732# - 'nightly'
1833 os :
1934 - ubuntu-latest
20- - macOS -latest
35+ - macos -latest
2136 - windows-latest
2237 arch :
23- - x64
38+ - ' '
39+ exclude :
40+ - os : macos-latest # Apple Silicon
41+ version : ' 1.0'
42+ arch : ' '
43+ include :
44+ - os : macos-latest # Apple Silicon
45+ version : ' 1.0'
46+ # Install an x86_64 build of Julia, and run it under Rosetta 2 emulation
47+ arch : ' x64'
2448 steps :
2549 - uses : actions/checkout@v4
2650 - uses : julia-actions/setup-julia@v2
2751 with :
2852 version : ${{ matrix.version }}
29- arch : ${{ matrix.arch }}
30- - uses : actions/cache@v4
31- env :
32- cache-name : cache-artifacts
33- with :
34- path : ~/.julia/artifacts
35- key : ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
36- restore-keys : |
37- ${{ runner.os }}-test-${{ env.cache-name }}-
38- ${{ runner.os }}-test-
39- ${{ runner.os }}-
53+ arch : ${{ (matrix.arch == '') && runner.arch || matrix.arch }}
54+ - uses : julia-actions/cache@v2
4055 - uses : julia-actions/julia-buildpkg@v1
4156 - uses : julia-actions/julia-runtest@v1
4257 - uses : julia-actions/julia-processcoverage@v1
4358 - uses : codecov/codecov-action@v5
4459 with :
45- file : lcov.info
60+ token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments