Skip to content

Commit

Permalink
CI: avoid running all workflows for just one changed
Browse files Browse the repository at this point in the history
There is no need to run esp32-mkimage when pico-build.yaml is changed
and so on.

Signed-off-by: Davide Bettio <[email protected]>
  • Loading branch information
bettio committed Oct 6, 2023
1 parent 61f4b72 commit e113430
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/esp32-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ name: ESP32 Builds
on:
push:
paths:
- '.github/workflows/**'
- '.github/workflows/esp32-build.yaml'
- 'CMakeLists.txt'
- 'libs/**'
- 'src/platforms/esp32/**'
- 'src/libAtomVM/**'
- 'tools/packbeam/**'
pull_request:
paths:
- '.github/workflows/**'
- '.github/workflows/esp32-build.yaml'
- 'src/platforms/esp32/**'
- 'src/libAtomVM/**'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/esp32-mkimage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: esp32-mkimage
on:
push:
paths:
- '.github/workflows/**'
- '.github/workflows/esp32-mkimage.yaml'
- 'CMakeLists.txt'
- 'libs/**'
- 'src/platforms/esp32/**'
Expand All @@ -19,7 +19,7 @@ on:
- '*'
pull_request:
paths:
- '.github/workflows/**'
- '.github/workflows/esp32-mkimage.yaml'
- 'src/platforms/esp32/**'
- 'src/libAtomVM/**'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pico-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: Pico Build
on:
push:
paths:
- '.github/workflows/**'
- '.github/workflows/pico-build.yaml'
- 'CMakeLists.txt'
- 'libs/**'
- 'src/platforms/rp2040/**'
Expand All @@ -18,7 +18,7 @@ on:
- '*'
pull_request:
paths:
- '.github/workflows/**'
- '.github/workflows/pico-build.yaml'
- 'CMakeLists.txt'
- 'libs/**'
- 'src/platforms/rp2040/**'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
branches:
- 'master'
paths:
- '.github/workflows/**'
- '.github/workflows/publish-docs.yaml'
- 'CMakeLists.txt'
- 'doc/**'
- 'libs/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/stm32-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ name: STM32 Build
on:
push:
paths:
- '.github/workflows/**'
- '.github/workflows/stm32-build.yaml'
- 'CMakeLists.txt'
- 'src/platforms/stm32/**'
- 'src/libAtomVM/**'
pull_request:
paths:
- '.github/workflows/**'
- '.github/workflows/stm32-build.yaml'
- 'CMakeLists.txt'
- 'src/platforms/stm32/**'
- 'src/libAtomVM/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wasm-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: Wasm Build
on:
push:
paths:
- '.github/workflows/**'
- '.github/workflows/wasm-build.yaml'
- 'CMakeLists.txt'
- 'libs/**'
- 'src/platforms/emscripten/**'
Expand All @@ -18,7 +18,7 @@ on:
- '*'
pull_request:
paths:
- '.github/workflows/**'
- '.github/workflows/wasm-build.yaml'
- 'CMakeLists.txt'
- 'libs/**'
- 'src/platforms/emscripten/**'
Expand Down

0 comments on commit e113430

Please sign in to comment.