@@ -72,44 +72,48 @@ jobs:
72
72
issues : write
73
73
name : Check - ${{ matrix.run_args.name }}
74
74
runs-on : ${{ matrix.run_args.os }}
75
- if : ${{ needs.check-needs-run.outputs.any-changes == 'true' }}
76
75
strategy :
77
76
matrix :
78
77
run_args : ${{fromJson(needs.generate-job-matrix.outputs.matrix)}}
79
78
steps :
80
79
- name : Checkout
80
+ if : ${{ needs.check-needs-run.outputs.any-changes == 'true' }}
81
81
uses : actions/checkout@v4
82
82
83
83
- name : Install alsa and udev
84
- if : runner.os == 'linux'
84
+ if : ${{ needs.check-needs-run.outputs.any-changes == 'true' && runner.os == 'linux' }}
85
85
run : |
86
86
sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
87
87
sudo rm -rf /usr/share/dotnet; sudo rm -rf /opt/ghc; sudo rm -rf "/usr/local/share/boost"; sudo rm -rf "$AGENT_TOOLSDIRECTORY"
88
88
- uses : actions-rs/toolchain@v1
89
+ if : ${{ needs.check-needs-run.outputs.any-changes == 'true' }}
89
90
with :
90
91
toolchain : stable
91
92
override : true
92
93
93
94
- name : Rust Cache
95
+ if : ${{ needs.check-needs-run.outputs.any-changes == 'true' }}
94
96
95
97
96
98
- name : Setup
99
+ if : ${{ needs.check-needs-run.outputs.any-changes == 'true' }}
97
100
run : |
98
101
cargo xtask init
99
102
100
103
- name : Check
104
+ if : ${{ needs.check-needs-run.outputs.any-changes == 'true' }}
101
105
run : |
102
106
${{ matrix.run_args.command }}
103
107
104
108
- name : Upload coverage artifact
105
- if : ${{ matrix.run_args.generates_coverage }}
109
+ if : ${{ needs.check-needs-run.outputs.any-changes == 'true' && matrix.run_args.generates_coverage }}
106
110
uses : actions/upload-artifact@v4
107
111
with :
108
112
name : code-coverage-report
109
113
path : target/coverage/html/
110
114
111
115
- name : Update coverage badge
112
- if : ${{ matrix.run_args.generates_coverage }}
116
+ if : ${{ needs.check-needs-run.outputs.any-changes == 'true' && matrix.run_args.generates_coverage }}
113
117
continue-on-error : true
114
118
run : |
115
119
git checkout -b chore/_update-coverage-badge || git checkout chore/_update-coverage-badge
0 commit comments