blob: c91eee81f01f6bddc141924a655061fdaacd3974 (
plain)
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
36
37
38
39
40
41
42
|
# Define the sequence of steps for the CI pipeline
steps:
build:
image: rust:1.94.0-bullseye
environment:
PKG_CONFIG_PATH: "/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/share/pkgconfig"
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
commands:
- rustup default stable
- apt update
- apt install -y pkg-config libgpg-error-dev libgpgme-dev libassuan-dev gnupg openssl
- cargo build --verbose --release --jobs 4
when:
branch: main
event: [ push, pull_request ]
clippy:
image: rust:1.94.0-bullseye
environment:
PKG_CONFIG_PATH: "/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/share/pkgconfig"
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
commands:
- apt update
- apt install -y pkg-config libgpg-error-dev libgpgme-dev libassuan-dev gnupg openssl
- rustup component add clippy rustfmt
- cargo fmt --all
- cargo clippy --jobs 2 -- -D clippy::all # -D warnings
when:
branch: main
event: [ push, pull_request ]
# tests:
# image: rust
# environment:
# RUST_BACKTRACE: 1
# CARGO_TERM_COLOR: always
# commands:
# - cargo test --verbose --jobs 2 -- --test-threads=2
# when:
# branch: main
# event: [ push, pull_request ]
|