chore: better separate ci jobs
This commit is contained in:
parent
2cc974accc
commit
8609769389
4 changed files with 39 additions and 8 deletions
15
.woodpecker/lint.yml
Normal file
15
.woodpecker/lint.yml
Normal 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
18
.woodpecker/test-mem.yml
Normal 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
29
.woodpecker/test.yml
Normal 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]
|
||||
Reference in a new issue