aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-06-17 14:01:09 +0600
committerGitea <gitea@fake.local>2022-06-25 08:27:01 +0200
commit82487293203cf5bad77e4fc8aa4da262e7b1c049 (patch)
treeb80cf8ee5c61fb09bff3a0f7922cb582bfb2aedf
parenta9d2b5b088a03972908bdfd2878091b68e8bc4b0 (diff)
[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.
-rw-r--r--.woodpecker/analysis.yml4
-rw-r--r--.woodpecker/build.yml4
2 files changed, 4 insertions, 4 deletions
diff --git a/.woodpecker/analysis.yml b/.woodpecker/analysis.yml
index 9a18b45..56cc7b1 100644
--- a/.woodpecker/analysis.yml
+++ b/.woodpecker/analysis.yml
@@ -1,8 +1,8 @@
+branches: master
+
pipeline:
analysis:
image: alpine
- when:
- branch: master
commands: |
apk add --no-cache build-base cppcheck clang-extra-tools \
imlib2-dev xorgproto \
diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml
index d70e0e6..ebabf12 100644
--- a/.woodpecker/build.yml
+++ b/.woodpecker/build.yml
@@ -1,11 +1,11 @@
+branches: master
+
# NOTE: "stable" tcc is too old and fails at linking. instead fetching a recent known working commit.
pipeline:
build:
image: alpine
environment:
- TCC_SHA=027b8fb9b88fe137447fb8bb1b61079be9702472
- when:
- branch: master
commands: |
apk add --no-cache \
imlib2 imlib2-dev xorgproto \