2023-06-03 15:01:17 +02:00
|
|
|
matrix:
|
|
|
|
ARCH:
|
|
|
|
- 'amd64'
|
|
|
|
- 'arm64'
|
|
|
|
|
2023-08-12 15:47:05 +02:00
|
|
|
platform: "linux/${ARCH}"
|
2023-06-03 15:01:17 +02:00
|
|
|
|
2023-08-12 14:09:22 +02:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude: [main]
|
|
|
|
event: push
|
2023-06-03 15:01:17 +02:00
|
|
|
|
2023-08-12 14:09:22 +02:00
|
|
|
steps:
|
2023-06-03 15:01:17 +02:00
|
|
|
build:
|
2023-08-12 14:09:22 +02:00
|
|
|
image: 'rust:1.71-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 ]'
|