File tree Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -21,21 +21,28 @@ concurrency:
21
21
cancel-in-progress : true
22
22
23
23
jobs :
24
+ generate-job-matrix :
25
+ runs-on : ubuntu-latest
26
+ outputs :
27
+ matrix : ${{ steps.generate-matrix.outputs.matrix }}
28
+ steps :
29
+ - name : Generate matrix
30
+ id : generate-matrix
31
+ run : |
32
+ echo "matrix=$(cargo xtask ci-matrix)" >> $GITHUB_OUTPUT
33
+
24
34
check :
25
35
permissions :
26
36
pull-requests : write
27
- name : Check - ${{ matrix.run_args.label }}
37
+ name : Check - ${{ matrix.run_args.name }}
28
38
runs-on : ${{ matrix.run_args.os }}
39
+ needs : generate-job-matrix
29
40
strategy :
30
41
matrix :
31
- run_args : [
32
- {label: Windows, os: windows-latest },
33
- {label: MacOS, os: macOS-latest },
34
- {label: Ubuntu, os: ubuntu-latest },
35
- ]
42
+ run_args : ${{fromJson(needs.generate-job-matrix.outputs.matrix)}}
36
43
steps :
37
44
- name : Checkout
38
- uses : actions/checkout@v3
45
+ uses : actions/checkout@v4
39
46
- name : Install alsa and udev
40
47
if : runner.os == 'linux'
41
48
run : |
49
56
uses : Swatinem/rust-cache@v2.7.3
50
57
- uses : actions-rs/cargo@v1
51
58
with :
52
- command : xtask
53
- args : ci-check
54
- - uses : romeovs/lcov-reporter-action@v0.2.16
55
- continue-on-error : true
56
- with :
57
- lcov-file : ./target/coverage/lcov.info
59
+ command : ${{ matrix.run_args.command }}
60
+ args : ci-check
You can’t perform that action at this time.
0 commit comments