-
-
Notifications
You must be signed in to change notification settings - Fork 54
46 lines (34 loc) · 1.04 KB
/
build.yaml
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
name: build
on: [workflow_dispatch, push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Linux build dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt update -y
sudo apt install -y build-essential gnome-keyring
- name: Fetch head
uses: actions/checkout@v4
- name: Install Rust Toolchain (stable)
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Build (debug)
run: cargo build --verbose --all-targets
- name: Linux tests
if: matrix.os == 'ubuntu-latest'
run: dbus-run-session -- bash linux-test.sh
- name: Non-linux tests
if: matrix.os != 'ubuntu-latest'
run: cargo test --verbose
- name: Format check
run: cargo fmt --all -- --check
- name: Clippy check
run: cargo clippy -- -D warnings