2022-01-14 20:30:56 +01:00
|
|
|
# These checks already get performed on the feature branches
|
|
|
|
branches:
|
|
|
|
exclude: [ main, dev ]
|
|
|
|
platform: linux/arm64
|
|
|
|
|
|
|
|
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'
|
|
|
|
environment:
|
|
|
|
- LDFLAGS=-lz -lbz2 -llzma -lexpat -lzstd -llz4 -static
|
|
|
|
group: 'build'
|
|
|
|
commands:
|
|
|
|
- make prod
|
2022-01-14 20:38:36 +01:00
|
|
|
# Make sure the binary is actually static
|
2022-01-14 20:43:11 +01:00
|
|
|
- readelf -d pvieter
|
2022-01-14 21:50:43 +01:00
|
|
|
- du -h pvieter
|
2022-01-14 20:43:11 +01:00
|
|
|
- '[ "$(readelf -d pvieter | grep NEEDED | wc -l)" = 0 ]'
|