From 82487293203cf5bad77e4fc8aa4da262e7b1c049 Mon Sep 17 00:00:00 2001 From: NRK Date: Fri, 17 Jun 2022 14:01:09 +0600 Subject: [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. --- .woodpecker/analysis.yml | 4 ++-- .woodpecker/build.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to '.woodpecker') 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 \ -- cgit v1.2.3