Skip to content

Commit c3b572d

Browse files
huozhiijjk
andauthored
[ci]: skip build-windows job for docs only change (#77743)
### What Noticed the native binaries are still built when we only change docs <img width="400" src="https://camo.githubusercontent.com/d78eae9e2ff385ff60be50f5f66ea612f0bcaed0afddb2eaccf26ce0987d1374/68747470733a2f2f67726170686974652d757365722d75706c6f616465642d6173736574732d70726f642e73332e616d617a6f6e6177732e636f6d2f32566b7231686a7862636c33624b366c544666372f63366538663165622d613131392d343638332d623262382d3237323264373432643334342e706e67"> Add docs-only check to skip `build-native` and `build-native-windwos` jobs, skip swc build for docs only updates. --------- Co-authored-by: JJ Kasper <[email protected]>
1 parent ef5d806 commit c3b572d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build_and_test.yml

+4
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ jobs:
6767
build-native:
6868
name: build-native
6969
uses: ./.github/workflows/build_reusable.yml
70+
needs: ['changes']
71+
if: ${{ needs.changes.outputs.docs-only == 'false' }}
7072
with:
7173
skipInstallBuild: 'yes'
7274
stepName: 'build-native'
@@ -75,6 +77,8 @@ jobs:
7577
build-native-windows:
7678
name: build-native-windows
7779
uses: ./.github/workflows/build_reusable.yml
80+
needs: ['changes']
81+
if: ${{ needs.changes.outputs.docs-only == 'false' }}
7882
with:
7983
skipInstallBuild: 'yes'
8084
stepName: 'build-native-windows'

0 commit comments

Comments
 (0)