File tree Expand file tree Collapse file tree 1 file changed +38
-3
lines changed Expand file tree Collapse file tree 1 file changed +38
-3
lines changed Original file line number Diff line number Diff line change 7
7
branches :
8
8
- master
9
9
10
+ concurrency :
11
+ group : ${{ github.workflow }}-${{ github.ref }}
12
+ cancel-in-progress : true
13
+
10
14
env :
11
15
FORCE_COLOR : 3
12
16
13
17
jobs :
18
+ generate-jobs :
19
+ runs-on : ubuntu-latest
20
+ outputs :
21
+ session : ${{ steps.set-matrix.outputs.session }}
22
+ steps :
23
+ - uses : actions/checkout@v3
24
+ - uses : henryiii/nox@henryiii/feat/json
25
+ - id : set-matrix
26
+ run : |
27
+ MATRIX=$(
28
+ nox --json -l | jq -c '[.[].session]'
29
+ )
30
+ echo "session=$MATRIX" | tee --append $GITHUB_OUTPUT
31
+
14
32
checks :
33
+ needs : [generate-jobs]
15
34
runs-on : ${{ matrix.runs-on }}
16
35
strategy :
17
36
fail-fast : false
18
37
matrix :
19
38
runs-on : [ubuntu-latest, macos-latest, windows-latest]
39
+ session : ${{ fromJson(needs.generate-jobs.outputs.session) }}
40
+ exclude :
41
+ - runs-on : windows-latest
42
+ session : test(hello-cmake-package)
43
+ - runs-on : windows-latest
44
+ session : dist(hello-cmake-package)
20
45
21
- name : Check on ${{ matrix.runs-on }}
46
+ name : Session ${{ matrix.session }} on ${{ matrix.runs-on }}
22
47
23
48
steps :
24
49
- uses : actions/checkout@v3
25
- - uses : wntrblm/nox@main
26
- - run : nox
50
+
51
+ - run : nox -s '${{ matrix.session }}'
52
+
53
+ pass :
54
+ if : always()
55
+ needs : [checks]
56
+ runs-on : ubuntu-latest
57
+ steps :
58
+ - name : Decide whether the needed jobs succeeded or failed
59
+ uses : re-actors/alls-green@release/v1
60
+ with :
61
+ jobs : ${{ toJSON(needs) }}
You can’t perform that action at this time.
0 commit comments