Debian Codegraph @

.woodpecker/build-x86_64-linux-gnu.yaml

raw
1 when:
2 - event: [manual, push, pull_request]
3 branch: main
4 path:
5 on_empty: false
6 include:
7 - "**/*.yaml"
8 - "**/*.toml"
9 - "**/*.rs"
10 - "src/**"
11
12 steps:
13 - name: build-x86_64-linux-gnu
14 image: amd64/rockylinux:9-minimal
15 environment:
16 RUST_BACKTRACE: 1
17 RUST_LOG: trace
18 CARGO_INCREMENTAL: 0
19 commands:
20 - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --verbose --default-toolchain stable --default-host x86_64-unknown-linux-gnu --component rustfmt -y
21 - . "$HOME/.cargo/env"
22 - cargo fmt --all --check
23 - microdnf install --nodocs --assumeyes clang libselinux-devel
24 - cargo build --verbose --workspace --jobs=1 --target=x86_64-unknown-linux-gnu
25 - cargo test --verbose --workspace --jobs=1 --target=x86_64-unknown-linux-gnu --no-run
26 - cargo test --verbose --workspace --jobs=1 --target=x86_64-unknown-linux-gnu -- --test-threads=1 --nocapture