forked from open-source-cooperative/dbus-secret-service
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (57 loc) · 2.03 KB
/
Copy pathci.yaml
File metadata and controls
74 lines (57 loc) · 2.03 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: CI
on: [ workflow_dispatch, push, pull_request ]
jobs:
ci_stable:
runs-on: ubuntu-latest
strategy:
matrix:
features:
- ""
- "vendored"
- "crypto-rust"
- "crypto-openssl"
- "crypto-rust,vendored"
- "crypto-openssl,vendored"
steps:
- name: install required packages
run: |
sudo apt-get update
sudo apt-get install -y libdbus-1-dev libssl-dev
- name: Fetch head
uses: actions/checkout@v5
- name: Install rust stable
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- name: Format check
run: cargo fmt --check
- name: Clippy check
run: cargo clippy --no-deps --all-targets -- -D warnings
- name: Install gnome-keyring
run: sudo apt-get install -y gnome-keyring
- name: Start gnome-keyring
# run gnome-keyring with 'foobar' as password for the login keyring
# this will create a new login keyring and unlock it
# the login password doesn't matter, but the keyring must be unlocked for the tests to work
run: gnome-keyring-daemon --components=secrets --daemonize --unlock <<< 'foobar'
- name: Build and Test
run: cargo test --no-default-features --features=${{ matrix.features }} --verbose
- name: Build examples
run: cargo build --examples --verbose
ci_msrv:
runs-on: ubuntu-latest
steps:
- name: install required packages
run: |
sudo apt-get update
sudo apt-get install -y libdbus-1-dev libssl-dev
- name: Fetch head
uses: actions/checkout@v5
- name: Install rust MSRV
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.78
components: clippy
- name: Clippy check
run: cargo clippy --no-deps --all-targets -- -D warnings