fix(ci): static compilation
This commit is contained in:
parent
7546ec9c5f
commit
c13b823682
2 changed files with 13 additions and 38 deletions
|
|
@ -10,12 +10,19 @@ steps:
|
|||
image: 'rust:1.79-alpine3.19'
|
||||
environment:
|
||||
- 'LIBARCHIVE_STATIC=1'
|
||||
- 'LIBARCHIVE_LIB_DIR=/usr/lib'
|
||||
- 'LIBARCHIVE_INCLUDE_DIR=/usr/include'
|
||||
- 'LIBARCHIVE_LDFLAGS=-lssl -lcrypto -L/lib -lz -lbz2 -llzma -lexpat -lzstd -llz4'
|
||||
- 'LIBARCHIVE_LDFLAGS=-L/usr/lib -lz -lbz2 -llzma -lexpat -lzstd -llz4 -lsqlite3'
|
||||
commands:
|
||||
- apk add --no-cache build-base libarchive-static libarchive-dev
|
||||
# Dependencies required to statically compile libarchive and libsqlite3
|
||||
- >
|
||||
apk add --no-cache build-base
|
||||
libarchive-static libarchive-dev
|
||||
zlib-static
|
||||
openssl-libs-static
|
||||
bzip2-static
|
||||
xz-static
|
||||
expat-static
|
||||
zstd-static
|
||||
lz4-static
|
||||
acl-static
|
||||
- cargo build --verbose
|
||||
# Binaries, even debug ones, should be statically compiled
|
||||
- '[ "$(readelf -d target/debug/rieterd | grep NEEDED | wc -l)" = 0 ]'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue