|
1 | 1 | name: CI |
| 2 | + |
2 | 3 | on: |
3 | | - pull_request: |
| 4 | + push: |
| 5 | + paths-ignore: |
| 6 | + - 'LICENSE.md' |
| 7 | + - 'README.md' |
4 | 8 | branches: |
5 | 9 | - master |
6 | | - push: |
| 10 | + pull_request: |
7 | 11 | branches: |
8 | 12 | - master |
9 | 13 | tags: '*' |
| 14 | + |
10 | 15 | jobs: |
| 16 | + pre_job: |
| 17 | + runs-on: ubuntu-latest |
| 18 | + # Map a step output to a job output |
| 19 | + outputs: |
| 20 | + should_skip: ${{ steps.skip_check.outputs.should_skip }} |
| 21 | + steps: |
| 22 | + - id: skip_check |
| 23 | + uses: fkirc/skip-duplicate-actions@v5 |
| 24 | + with: |
| 25 | + concurrent_skipping: 'same_content_newer' |
11 | 26 | test: |
12 | | - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} |
| 27 | + name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.julia-threads }} thread(s) - ${{ github.event_name }} |
| 28 | + needs: pre_job |
| 29 | + if: needs.pre_job.outputs.should_skip != 'true' |
13 | 30 | runs-on: ${{ matrix.os }} |
| 31 | + env: |
| 32 | + JULIA_NUM_THREADS: ${{ matrix.julia-threads }} |
14 | 33 | strategy: |
15 | 34 | fail-fast: false |
16 | 35 | matrix: |
17 | | - version: |
18 | | - - '1.7' |
19 | | - - '1.9' |
20 | | - os: |
21 | | - - ubuntu-latest |
22 | | - arch: |
23 | | - - x64 |
| 36 | + julia-version: ['1.9', '1', 'nightly'] |
| 37 | + julia-arch: [x64] |
| 38 | + os: [ubuntu-latest, macOS-latest, windows-latest] |
| 39 | + # # 32-bit Julia binaries are not available on macOS |
| 40 | + # exclude: |
| 41 | + # - os: macOS-latest |
| 42 | + # julia-arch: x86 |
| 43 | + julia-threads: |
| 44 | + - '1' |
| 45 | + include: |
| 46 | + - os: ubuntu-latest |
| 47 | + julia-version: '1' |
| 48 | + julia-arch: x64 |
| 49 | + julia-threads: '2' |
| 50 | + |
24 | 51 | steps: |
25 | | - - name: Checkout |
26 | | - uses: actions/checkout@v2 |
27 | | - - uses: julia-actions/setup-julia@v1 |
| 52 | + - uses: actions/checkout@v4 |
| 53 | + - name: "Set up Julia" |
| 54 | + uses: julia-actions/setup-julia@v2 |
28 | 55 | with: |
29 | | - version: ${{ matrix.version }} |
30 | | - arch: ${{ matrix.arch }} |
31 | | - - uses: actions/cache@v1 |
| 56 | + version: ${{ matrix.julia-version }} |
| 57 | + arch: ${{ matrix.julia-arch }} |
| 58 | + - uses: actions/cache@v4 |
32 | 59 | env: |
33 | 60 | cache-name: cache-artifacts |
34 | 61 | with: |
|
39 | 66 | ${{ runner.os }}-test- |
40 | 67 | ${{ runner.os }}- |
41 | 68 | - uses: julia-actions/julia-buildpkg@v1 |
| 69 | + # continue-on-error: ${{ matrix.julia-version == 'nightly' }} |
42 | 70 | - uses: julia-actions/julia-runtest@v1 |
| 71 | + # continue-on-error: ${{ matrix.julia-version == 'nightly' }} |
43 | 72 | - uses: julia-actions/julia-processcoverage@v1 |
44 | | - - uses: codecov/codecov-action@v1 |
| 73 | + - uses: coverallsapp/github-action@master |
45 | 74 | with: |
46 | | - file: lcov.info |
| 75 | + path-to-lcov: lcov.info |
| 76 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments