alex/.woodpecker/build.yml

22 lines
434 B
YAML
Raw Normal View History

2023-06-03 15:01:17 +02:00
matrix:
ARCH:
- 'amd64'
- 'arm64'
platform: "linux/${ARCH}"
branches:
exclude: [main]
pipeline:
build:
2023-06-03 15:03:41 +02:00
image: 'rust:1.70-alpine3.18'
2023-06-03 15:01:17 +02:00
commands:
2023-06-03 17:40:57 +02:00
- apk add --no-cache build-base
2023-06-03 15:01:17 +02:00
- cargo build --verbose
- cargo test --verbose
# Binaries, even debug ones, should be statically compiled
- '[ "$(readelf -d target/debug/alex | grep NEEDED | wc -l)" = 0 ]'
2023-06-05 10:47:23 +02:00
when:
event: [push]