nsxiv8248729
[ci]: skip the pipeline entirely if branch isn't master
currently, it will clone the repo and then skip the step. this is wasteful, instead skip the pipeline entirely.
+4 −4
2 files changed
- M .woodpecker/analysis.yml +2 −2
- M .woodpecker/build.yml +2 −2
| @@ -1,8 +1,8 @@ | |||
| 1 | + | branches: master | |
| 2 | + | ||
| 1 | 3 | pipeline: | |
| 2 | 4 | analysis: | |
| 3 | 5 | image: alpine | |
| 4 | − | when: | |
| 5 | − | branch: master | |
| 6 | 6 | commands: | | |
| 7 | 7 | apk add --no-cache build-base cppcheck clang-extra-tools \ | |
| 8 | 8 | imlib2-dev xorgproto \ | |
| @@ -1,11 +1,11 @@ | |||
| 1 | + | branches: master | |
| 2 | + | ||
| 1 | 3 | # NOTE: "stable" tcc is too old and fails at linking. instead fetching a recent known working commit. | |
| 2 | 4 | pipeline: | |
| 3 | 5 | build: | |
| 4 | 6 | image: alpine | |
| 5 | 7 | environment: | |
| 6 | 8 | - TCC_SHA=027b8fb9b88fe137447fb8bb1b61079be9702472 | |
| 7 | − | when: | |
| 8 | − | branch: master | |
| 9 | 9 | commands: | | |
| 10 | 10 | apk add --no-cache \ | |
| 11 | 11 | imlib2 imlib2-dev xorgproto \ | |