|
8 | 8 | - master
|
9 | 9 | tags: '*'
|
10 | 10 | workflow_dispatch:
|
| 11 | + |
| 12 | +concurrency: |
| 13 | + # Skip intermediate builds: all builds except for builds on the `master` branch |
| 14 | + # Cancel intermediate builds: only pull request builds |
| 15 | + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }} |
| 16 | + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} |
| 17 | + |
11 | 18 | jobs:
|
12 | 19 | test:
|
13 |
| - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} |
| 20 | + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }} |
14 | 21 | runs-on: ${{ matrix.os }}
|
15 | 22 | strategy:
|
16 | 23 | fail-fast: false
|
17 | 24 | matrix:
|
18 | 25 | version:
|
19 |
| - - '1.0' |
20 |
| - - '1.6' |
| 26 | + - 'min' |
| 27 | + - 'lts' |
21 | 28 | - '1'
|
22 |
| - - 'nightly' |
| 29 | + - 'pre' |
23 | 30 | os:
|
24 | 31 | - ubuntu-latest
|
25 |
| - arch: |
26 |
| - - x64 |
| 32 | + - windows-latest |
| 33 | + - macOS-latest |
| 34 | + exclude: |
| 35 | + # For Julia 1.6 no aarch64 binary exists |
| 36 | + - version: 'min' |
| 37 | + os: macOS-latest |
| 38 | + include: |
| 39 | + - version: 'min' |
| 40 | + os: macOS-13 # uses x64 |
27 | 41 | steps:
|
28 |
| - - uses: actions/checkout@v4 |
| 42 | + - uses: actions/checkout@v5 |
29 | 43 | - uses: julia-actions/setup-julia@v2
|
30 | 44 | with:
|
31 | 45 | version: ${{ matrix.version }}
|
32 |
| - arch: ${{ matrix.arch }} |
33 |
| - - uses: actions/cache@v4 |
34 |
| - env: |
35 |
| - cache-name: cache-artifacts |
36 |
| - with: |
37 |
| - path: ~/.julia/artifacts |
38 |
| - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} |
39 |
| - restore-keys: | |
40 |
| - ${{ runner.os }}-test-${{ env.cache-name }}- |
41 |
| - ${{ runner.os }}-test- |
42 |
| - ${{ runner.os }}- |
| 46 | + - uses: julia-actions/cache@v2 |
43 | 47 | - uses: julia-actions/julia-buildpkg@v1
|
44 | 48 | - uses: julia-actions/julia-runtest@v1
|
45 | 49 | - uses: julia-actions/julia-processcoverage@v1
|
46 | 50 | - uses: codecov/codecov-action@v5
|
47 | 51 | with:
|
48 |
| - file: lcov.info |
| 52 | + files: lcov.info |
| 53 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 54 | + fail_ci_if_error: true |
49 | 55 | docs:
|
50 | 56 | name: Documentation
|
51 | 57 | runs-on: ubuntu-latest
|
52 | 58 | steps:
|
53 |
| - - uses: actions/checkout@v4 |
| 59 | + - uses: actions/checkout@v5 |
54 | 60 | - uses: julia-actions/setup-julia@v2
|
55 | 61 | with:
|
56 | 62 | version: '1'
|
57 |
| - - run: | |
58 |
| - julia --project=docs -e ' |
59 |
| - using Pkg |
60 |
| - Pkg.develop(PackageSpec(path=pwd())) |
61 |
| - Pkg.instantiate()' |
| 63 | + - uses: julia-actions/cache@v2 |
| 64 | + - run: julia --project=docs -e 'import Pkg; Pkg.instantiate()' |
62 | 65 | - run: |
|
63 | 66 | julia --project=docs -e '
|
64 | 67 | using Documenter: doctest
|
|
0 commit comments