feat(ci): use custom builder image
Some checks failed
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/push/lint Pipeline failed

This commit is contained in:
Jef Roosens 2024-07-07 13:30:12 +02:00
parent 68ce684c77
commit 9cec2e0dc2
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
3 changed files with 28 additions and 20 deletions

View file

@ -7,26 +7,15 @@ when:
steps:
build:
image: 'rust:1.79-alpine3.19'
environment:
- 'LIBARCHIVE_STATIC=1'
image: 'git.rustybever.be/chewing_bever/rieter-builder:1.79-alpine3.19'
commands:
# 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 ]'
# Clippy also performs a full build, so putting it here saves the CI a
# lot of work
- rustup component add clippy
# Clippy also performs a full build, so putting it here saves the CI a
# lot of work
clippy:
image: 'git.rustybever.be/chewing_bever/rieter-builder:1.79-alpine3.19'
commands:
- cargo clippy -- --no-deps -Dwarnings

View file

@ -7,7 +7,6 @@ when:
steps:
lint:
image: 'rust:1.79-alpine3.19'
image: 'git.rustybever.be/chewing_bever/rieter-builder:1.79-alpine3.19'
commands:
- rustup component add rustfmt
- cargo fmt -- --check