Skip to content

Commit

Permalink
Update CI Alpine version
Browse files Browse the repository at this point in the history
The Rust 1.70 build fails on new Alpine due to the musl upgrade and its
file api changes:

undefined reference to `fstat64'
undefined reference to `lseek64'

etc. So now do that build on Debian
  • Loading branch information
wezm committed Mar 31, 2024
1 parent f80ed22 commit c705c1e
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
task:
name: Build (Alpine Linux)
container:
image: alpine:3.15
cpu: 8
matrix:
- environment:
RUST_VERSION: "1.70.0"
- environment:
RUST_VERSION: "stable"
image: alpine:3.19
cpu: 4
environment:
RUSTFLAGS: "-C target-feature=-crt-static"
RUST_VERSION: "stable"
PATH: "$HOME/.cargo/bin:$PATH"
cargo_cache:
folder: $HOME/.cargo/registry
Expand All @@ -20,3 +15,21 @@ task:
test_script:
- cargo test
before_cache_script: rm -rf $HOME/.cargo/registry/index

task:
name: Build (Debian Linux)
container:
image: debian:12-slim
cpu: 4
environment:
RUST_VERSION: "1.70.0"
PATH: "$HOME/.cargo/bin:$PATH"
cargo_cache:
folder: $HOME/.cargo/registry
fingerprint_script: cat Cargo.lock
install_script:
- apt-get update && apt-get install -y --no-install-recommends git ca-certificates curl gcc libc6-dev
- curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain ${RUST_VERSION}
test_script:
- cargo test
before_cache_script: rm -rf $HOME/.cargo/registry/index

0 comments on commit c705c1e

Please sign in to comment.