Repository navigation
57 lines (52 loc) · 1.48 KB
/
Copy pathrust.yml
File metadata and controls
57 lines (52 loc) · 1.48 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Rust
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
fail-fast: false
steps:
- uses: actions/checkout@v6
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Install dependencies
run: |
sudo apt -y update
sudo apt -y install devscripts libapt-pkg-dev libtdb-dev libssl-dev pkg-config nettle-dev clang
- name: Upgrade pip
run: python -m pip install --upgrade pip setuptools_rust setuptools
- name: Install breezy
run: python -m pip install --upgrade breezy
- name: Build
run: cargo build --verbose
env:
RUSTFLAGS: -Dwarnings
- name: Test (no features)
run: cargo test --no-default-features
env:
RUSTFLAGS: -Dwarnings
- name: Test (cli, no debian)
run: cargo test --no-default-features --features cli
env:
RUSTFLAGS: -Dwarnings
- name: Test (debian, no cli)
run: cargo test --no-default-features --features debian
env:
RUSTFLAGS: -Dwarnings
- name: Test (default features)
run: cargo test
env:
RUSTFLAGS: -Dwarnings
- name: Test (all features)
run: cargo test --all-features
env:
RUSTFLAGS: -Dwarnings
- name: Check formatting
run: cargo fmt -- --check