-
Notifications
You must be signed in to change notification settings - Fork 17
38 lines (33 loc) · 862 Bytes
/
build.yml
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
name: CI
on:
push:
branches:
- "**"
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [macOS-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- uses: Swatinem/rust-cache@v1
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libdbus-1-dev pkg-config
if: ${{ runner.os == 'Linux' }}
- name: Build
run: cargo build --release --all-targets --verbose
- name: Build zbus
run: cargo build --release --all-targets --verbose --no-default-features --features=use_zbus
if: ${{ runner.os == 'Linux' }}