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 ]'
|