vieter/.woodpecker/.build.yml

29 lines
649 B
YAML
Raw Normal View History

2022-01-13 15:29:43 +01:00
# These checks already get performed on the feature branches
branches:
exclude: [ main, dev ]
platform: linux/amd64
2022-01-13 15:29:43 +01:00
2022-01-13 13:40:33 +01:00
pipeline:
vieter:
image: 'chewingbever/vlang:latest'
group: 'build'
commands:
- make vieter
debug:
image: 'chewingbever/vlang:latest'
group: 'build'
commands:
- make debug
prod:
image: 'chewingbever/vlang:latest'
2022-01-14 18:32:00 +01:00
environment:
2022-01-14 18:36:36 +01:00
- LDFLAGS=-lz -lbz2 -llzma -lexpat -lzstd -llz4 -static
2022-01-13 13:40:33 +01:00
group: 'build'
commands:
- make prod
# Make sure the binary is actually static
2022-01-14 20:43:11 +01:00
- readelf -d pvieter
- '[ "$(readelf -d pvieter | grep NEEDED | wc -l)" = 0 ]'