File tree 2 files changed +32
-14
lines changed
2 files changed +32
-14
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- master
7
7
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
+
8
21
jobs :
9
22
test :
10
23
name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
21
34
- macOS-latest
22
35
- windows-latest
23
36
arch :
24
- - x64
37
+ - ' ' # default arch, usually x64 but for macOS also aarch64
25
38
- x86
26
39
exclude :
27
40
- os : macOS-latest
31
44
- uses : julia-actions/setup-julia@v2
32
45
with :
33
46
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 }}-
47
+ arch : ${{ (matrix.arch == '') && runner.arch || matrix.arch }}
48
+ - uses : julia-actions/cache@v2
45
49
- uses : julia-actions/julia-buildpkg@v1
46
50
- uses : julia-actions/julia-runtest@v1
47
51
- uses : julia-actions/julia-processcoverage@v1
48
52
- uses : codecov/codecov-action@v5
49
- with :
50
- file : lcov.info
Original file line number Diff line number Diff line change 4
4
types :
5
5
- created
6
6
workflow_dispatch :
7
+ inputs :
8
+ lookback :
9
+ default : " 3"
10
+ permissions :
11
+ actions : read
12
+ checks : read
13
+ contents : write
14
+ deployments : read
15
+ issues : read
16
+ discussions : read
17
+ packages : read
18
+ pages : read
19
+ pull-requests : read
20
+ repository-projects : read
21
+ security-events : read
22
+ statuses : read
7
23
jobs :
8
24
TagBot :
9
25
if : github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
You can’t perform that action at this time.
0 commit comments