chore: better separate ci jobs
Some checks failed
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/test-mem Pipeline failed

This commit is contained in:
Jef Roosens 2023-01-22 12:17:56 +01:00
parent 2cc974accc
commit 8609769389
4 changed files with 39 additions and 8 deletions

15
.woodpecker/lint.yml Normal file
View file

@ -0,0 +1,15 @@
variables:
&image 'git.rustybever.be/chewing_bever/c-devop:alpine3.17'
branches:
exclude: [ main ]
platform: linux/amd64
pipeline:
lint:
image: *image
pull: true
commands:
- make lint
when:
event: [push, pull_request]

18
.woodpecker/test-mem.yml Normal file
View file

@ -0,0 +1,18 @@
variables:
&image 'git.rustybever.be/chewing_bever/c-devop:alpine3.17'
branches:
exclude: [ main ]
platform: linux/amd64
depends_on:
- test
pipeline:
test:
image: *image
pull: true
commands:
- make test-mem
when:
event: [push, pull_request]

29
.woodpecker/test.yml Normal file
View file

@ -0,0 +1,29 @@
variables:
&image 'git.rustybever.be/chewing_bever/c-devop:alpine3.17'
matrix:
PLATFORM:
- 'linux/amd64'
- 'linux/arm64'
branches:
exclude: [ main ]
platform: ${PLATFORM}
pipeline:
build:
image: *image
pull: true
commands:
- make
- make clean
- CFLAGS='-O3' make
when:
event: [push, pull_request]
test:
image: *image
commands:
- make test
when:
event: [push, pull_request]