File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 1414
1515jobs :
1616 pythonbuild :
17+ if : ${{ needs.generate-matrix.outputs.pythonbuild_changed == 'true' || needs.generate-matrix.outputs.any_builds == 'true' || github.ref == 'refs/heads/main' }}
18+ needs :
19+ - generate-matrix
1720 runs-on : depot-ubuntu-22.04
1821 steps :
1922 - name : Install System Dependencies
4649 path : target/release/pythonbuild
4750
4851 image :
52+ if : ${{ needs.generate-matrix.outputs.any_builds == 'true' }}
4953 needs :
5054 - generate-matrix
51- if : ${{ needs.generate-matrix.outputs.any_builds == 'true' }}
5255 strategy :
5356 fail-fast : false
5457 matrix :
@@ -123,6 +126,7 @@ jobs:
123126 outputs :
124127 matrix : ${{ steps.set-matrix.outputs.matrix }}
125128 any_builds : ${{ steps.set-matrix.outputs.any_builds }}
129+ pythonbuild_changed : ${{ steps.changed.outputs.pythonbuild_any_changed }}
126130 steps :
127131 - uses : actions/checkout@v4
128132
@@ -150,7 +154,14 @@ jobs:
150154 # Build matrix is empty
151155 echo "any_builds=false" >> $GITHUB_OUTPUT
152156 fi
153-
157+
158+ - uses : tj-actions/changed-files@v45
159+ id : changed
160+ with :
161+ files_yaml : |
162+ pythonbuild:
163+ - "src/*.rs"
164+
154165 build :
155166 needs :
156167 - generate-matrix
You can’t perform that action at this time.
0 commit comments