|
6 | 6 | - master
|
7 | 7 | pull_request:
|
8 | 8 |
|
| 9 | +# needed to allow julia-actions/cache to delete old caches that it has created |
| 10 | +permissions: |
| 11 | + actions: write |
| 12 | + contents: read |
| 13 | + |
9 | 14 | jobs:
|
10 | 15 | test:
|
11 |
| - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} |
12 |
| - runs-on: ${{ matrix.os }} |
13 |
| - continue-on-error: ${{ matrix.version == 'nightly' }} |
| 16 | + name: Julia ${{ matrix.runner.version }} - ${{ matrix.runner.os }} - ${{ matrix.runner.arch }} - ${{ github.event_name }} |
| 17 | + runs-on: ${{ matrix.runner.os }} |
14 | 18 | strategy:
|
| 19 | + fail-fast: false |
15 | 20 | matrix:
|
16 |
| - version: |
17 |
| - - '1.7' |
18 |
| - - '1' |
19 |
| - - 'nightly' |
20 |
| - os: |
21 |
| - - ubuntu-latest |
22 |
| - - macOS-latest |
23 |
| - - windows-latest |
24 |
| - arch: |
25 |
| - - x64 |
26 |
| - - x86 |
27 |
| - exclude: |
28 |
| - - os: macOS-latest |
| 21 | + runner: |
| 22 | + # Default |
| 23 | + - version: '1' |
| 24 | + os: ubuntu-latest |
| 25 | + arch: x64 |
| 26 | + num_threads: 1 |
| 27 | + # x86 |
| 28 | + - version: '1' |
| 29 | + os: ubuntu-latest |
29 | 30 | arch: x86
|
30 |
| - include: |
| 31 | + num_threads: 1 |
| 32 | + # Multithreaded |
| 33 | + - version: '1' |
| 34 | + os: ubuntu-latest |
| 35 | + arch: x64 |
| 36 | + num_threads: 2 |
| 37 | + # Windows |
| 38 | + - version: '1' |
| 39 | + os: windows-latest |
| 40 | + arch: x64 |
| 41 | + num_threads: 1 |
| 42 | + # macOS |
31 | 43 | - version: '1'
|
| 44 | + os: macos-latest |
| 45 | + arch: aarch64 |
| 46 | + num_threads: 1 |
| 47 | + # Minimum supported Julia version |
| 48 | + - version: 'min' |
32 | 49 | os: ubuntu-latest
|
33 | 50 | arch: x64
|
34 |
| - coverage: true |
| 51 | + num_threads: 1 |
| 52 | + # Pre-release Julia version |
| 53 | + - version: 'pre' |
| 54 | + os: ubuntu-latest |
| 55 | + arch: x64 |
| 56 | + num_threads: 1 |
35 | 57 | steps:
|
36 |
| - - uses: actions/checkout@v2 |
37 |
| - - uses: julia-actions/setup-julia@v1 |
38 |
| - with: |
39 |
| - version: ${{ matrix.version }} |
40 |
| - arch: ${{ matrix.arch }} |
41 |
| - - uses: actions/cache@v1 |
42 |
| - env: |
43 |
| - cache-name: cache-artifacts |
| 58 | + - uses: actions/checkout@v4 |
| 59 | + - uses: julia-actions/setup-julia@v2 |
44 | 60 | with:
|
45 |
| - path: ~/.julia/artifacts |
46 |
| - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} |
47 |
| - restore-keys: | |
48 |
| - ${{ runner.os }}-test-${{ env.cache-name }}- |
49 |
| - ${{ runner.os }}-test- |
50 |
| - ${{ runner.os }}- |
| 61 | + version: ${{ matrix.runner.version }} |
| 62 | + arch: ${{ matrix.runner.arch }} |
| 63 | + - uses: julia-actions/cache@v2 |
51 | 64 | - uses: julia-actions/julia-buildpkg@v1
|
52 | 65 | - uses: julia-actions/julia-runtest@v1
|
53 | 66 | - uses: julia-actions/julia-processcoverage@v1
|
54 |
| - if: matrix.coverage |
55 |
| - - uses: codecov/codecov-action@v1 |
56 |
| - if: matrix.coverage |
| 67 | + - uses: codecov/codecov-action@v5 |
57 | 68 | with:
|
58 |
| - file: lcov.info |
59 |
| - - uses: coverallsapp/github-action@master |
60 |
| - if: matrix.coverage |
| 69 | + files: lcov.info |
| 70 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 71 | + - uses: coverallsapp/github-action@v2 |
61 | 72 | with:
|
62 | 73 | github-token: ${{ secrets.GITHUB_TOKEN }}
|
63 | 74 | path-to-lcov: lcov.info
|
0 commit comments