|
6 | 6 | - release-* |
7 | 7 | pull_request: |
8 | 8 | types: [opened, synchronize, reopened] |
| 9 | +concurrency: |
| 10 | + # Skip intermediate builds: always. |
| 11 | + # Cancel intermediate builds: only if it is a pull request build. |
| 12 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 13 | + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} |
9 | 14 | # needed to allow julia-actions/cache to delete old caches that it has created |
10 | 15 | permissions: |
11 | 16 | actions: write |
12 | 17 | contents: read |
13 | 18 | jobs: |
14 | 19 | test: |
15 | | - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ matrix.moi_test_modules }} - ${{ github.event_name }} |
16 | | - runs-on: ${{ matrix.os }} |
| 20 | + name: Julia ${{ matrix.machine.version }} - ${{ matrix.machine.os }}-${{ matrix.machine.arch }} - ${{ matrix.moi_test_modules }} |
| 21 | + runs-on: ${{ matrix.machine.os }} |
17 | 22 | strategy: |
18 | 23 | fail-fast: false |
19 | 24 | matrix: |
20 | | - # Since MOI doesn't have binary dependencies, only test on a subset of |
21 | | - # possible platforms. |
22 | | - include: |
| 25 | + moi_test_modules: |
| 26 | + - General |
| 27 | + - Benchmarks |
| 28 | + - Bridges |
| 29 | + - FileFormats |
| 30 | + - Nonlinear |
| 31 | + - Test |
| 32 | + - Utilities |
| 33 | + machine: |
23 | 34 | - version: 'nightly' |
24 | 35 | os: ubuntu-latest |
25 | 36 | arch: x64 |
26 | | - moi_test_modules: 'General;Nonlinear;Bridges;FileFormats' |
27 | | - - version: 'nightly' |
28 | | - os: ubuntu-latest |
29 | | - arch: x64 |
30 | | - moi_test_modules: 'Test;Utilities;Benchmarks' |
31 | | - - version: '1' |
32 | | - os: ubuntu-latest |
33 | | - arch: x64 |
34 | | - moi_test_modules: 'General;Nonlinear;Bridges;FileFormats' |
35 | 37 | - version: '1' |
36 | 38 | os: ubuntu-latest |
37 | 39 | arch: x64 |
38 | | - moi_test_modules: 'Test;Utilities;Benchmarks' |
39 | 40 | - version: '1' |
40 | 41 | os: windows-latest |
41 | 42 | arch: x64 |
42 | | - moi_test_modules: 'General;Nonlinear;Bridges;FileFormats' |
43 | | - - version: '1' |
44 | | - os: windows-latest |
45 | | - arch: x64 |
46 | | - moi_test_modules: 'Test;Utilities;Benchmarks' |
47 | | - - version: '1.6' |
48 | | - os: ubuntu-latest |
49 | | - arch: x64 |
50 | | - moi_test_modules: 'General;Nonlinear;Bridges;FileFormats' |
51 | 43 | - version: '1.6' |
52 | 44 | os: ubuntu-latest |
53 | 45 | arch: x64 |
54 | | - moi_test_modules: 'Test;Utilities;Benchmarks' |
55 | | - - version: '1' |
56 | | - os: ubuntu-latest |
57 | | - arch: x86 |
58 | | - moi_test_modules: 'General;Nonlinear;Bridges;FileFormats' |
59 | 46 | - version: '1' |
60 | 47 | os: ubuntu-latest |
61 | 48 | arch: x86 |
62 | | - moi_test_modules: 'Test;Utilities;Benchmarks' |
63 | 49 | steps: |
64 | 50 | - uses: actions/checkout@v4 |
65 | 51 | - uses: julia-actions/setup-julia@v2 |
66 | 52 | with: |
67 | | - version: ${{ matrix.version }} |
68 | | - arch: ${{ matrix.arch }} |
| 53 | + version: ${{ matrix.machine.version }} |
| 54 | + arch: ${{ matrix.machine.arch }} |
69 | 55 | - uses: julia-actions/cache@v1 |
70 | 56 | - uses: julia-actions/julia-buildpkg@v1 |
71 | 57 | - uses: julia-actions/julia-runtest@v1 |
|
0 commit comments