chore(ci): add static binary check
parent
fde413d6f6
commit
052fb75ff9
|
@ -3,7 +3,7 @@ platform: 'linux/amd64'
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
exclude: [main]
|
exclude: [main]
|
||||||
event: push
|
event: [push, pull_request]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
build:
|
build:
|
||||||
|
@ -11,4 +11,6 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache build-base libarchive libarchive-dev
|
- apk add --no-cache build-base libarchive libarchive-dev
|
||||||
- cargo build --verbose
|
- cargo build --verbose
|
||||||
|
# Binaries, even debug ones, should be statically compiled
|
||||||
|
- '[ "$(readelf -d target/debug/rieterd | grep NEEDED | wc -l)" = 0 ]'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue