Skip to content

Commit ed3ec9a

Browse files
committed
Make the GitHub actions script more parallel
1 parent ad6c689 commit ed3ec9a

File tree

1 file changed

+18
-32
lines changed

1 file changed

+18
-32
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,66 +6,52 @@ on:
66
- release-*
77
pull_request:
88
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/') }}
914
# needed to allow julia-actions/cache to delete old caches that it has created
1015
permissions:
1116
actions: write
1217
contents: read
1318
jobs:
1419
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 }}
1722
strategy:
1823
fail-fast: false
1924
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:
2334
- version: 'nightly'
2435
os: ubuntu-latest
2536
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'
3537
- version: '1'
3638
os: ubuntu-latest
3739
arch: x64
38-
moi_test_modules: 'Test;Utilities;Benchmarks'
3940
- version: '1'
4041
os: windows-latest
4142
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'
5143
- version: '1.6'
5244
os: ubuntu-latest
5345
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'
5946
- version: '1'
6047
os: ubuntu-latest
6148
arch: x86
62-
moi_test_modules: 'Test;Utilities;Benchmarks'
6349
steps:
6450
- uses: actions/checkout@v4
6551
- uses: julia-actions/setup-julia@v2
6652
with:
67-
version: ${{ matrix.version }}
68-
arch: ${{ matrix.arch }}
53+
version: ${{ matrix.machine.version }}
54+
arch: ${{ matrix.machine.arch }}
6955
- uses: julia-actions/cache@v1
7056
- uses: julia-actions/julia-buildpkg@v1
7157
- uses: julia-actions/julia-runtest@v1

0 commit comments

Comments
 (0)