Skip to content
Snippets Groups Projects
Verified Commit eef78078 authored by Geoffrey Arthaud's avatar Geoffrey Arthaud
Browse files

Try to improve cross compile

parent 200cf58e
Branches
Tags
No related merge requests found
......@@ -31,12 +31,10 @@ rust-nightly:
rust-alpine:
stage: build
image: rust:alpine
variables:
RUSTFLAGS: "-Ctarget-feature=+crt-static"
image: rust:latest
script:
- apk update
- apk add --no-cache openssl-dev musl-dev
- apt update -y
- apt install -y musl-dev musl-tools build-essential
- rustup target add x86_64-unknown-linux-musl
- cargo build --target x86_64-unknown-linux-musl --release
- target/x86_64-unknown-linux-musl/release/gitlab-project-doctor --help
......
......@@ -6,6 +6,8 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
openssl-sys = "0.9"
openssl = { version = "0.10", features = ["vendored"] }
atty = "0.2.14"
chrono = "0.4.34"
console = "0.15.2"
......@@ -25,5 +27,4 @@ rust-embed = "8.0.0"
serde = "1.0.190"
serde_json = "1.0.107"
structopt = "0.3.26"
openssl-sys = "0.9"
openssl = { version = "0.10", features = ["vendored"] }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment