From ad8c37c9eaafb469076583803ebc49bef8f1364d Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Wed, 18 Jan 2023 17:04:45 +0100 Subject: [PATCH] chore: added woodpecker config --- .woodpecker.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..a7e8fe3 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,36 @@ +variables: + &image 'git.rustybever.be/chewing_bever/c-devop:alpine3.17' + +matrix: + PLATFORM: + - 'linux/amd64' + - 'linux/arm64' + +branches: + exclude: [ main ] +platform: ${PLATFORM} + +pipeline: + lint: + image: *image + pull: true + commands: + - make lint + when: + event: [push, pull_request] + + build: + image: *image + commands: + - make + - make clean + - CFLAGS='-O3' make + when: + event: [push, pull_request] + + test: + image: *image + commands: + - make test + when: + event: [push, pull_request]