-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
35 lines (34 loc) · 1.33 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
test:alpine:
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/rust/tags/
image: "rust:alpine"
# clang-libs are needed by bindgen. build-base contains various needed things,
# among which crti.o and pkg-config.
variables:
# Set CARGO_HOME inside the CI directory, otherwise cargo won't use the cache.
CARGO_HOME: $CI_PROJECT_DIR/cargo
# Let rust create dynamically linked builds under musl libc - see [this rust
# issue](https://github.com/rust-lang/compiler-team/issues/422)
RUSTFLAGS: "-C target-feature=-crt-static"
# Same consideration for doc tests - see [this rust
# issue](https://github.com/rust-lang/cargo/issues/6650)
RUSTDOCFLAGS: "-C target-feature=-crt-static"
before_script:
- apk update
- apk add build-base clang-dev llvm-dev
script:
- mkdir -p target cargo
- rustc --version && cargo --version
- cargo test --workspace --verbose --release
test:debian-stable:
# Test on debian stable - uses libnftnl11 1.1.9-1
image: "rust:slim-bullseye"
variables:
CARGO_HOME: $CI_PROJECT_DIR/cargo
before_script:
- apt-get -y update
- apt-get -y install libclang-13-dev llvm-13-dev
script:
- mkdir -p target cargo
- rustc --version && cargo --version
- cargo test --workspace --verbose --release