-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (46 loc) · 1.28 KB
/
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
39
40
41
42
43
44
45
46
47
48
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
static-analysis:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install cargo components
run: |
rustup component add rustfmt
rustup component add clippy
- name: Rust Format
run: cargo fmt --all -- --check
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
build:
strategy:
matrix:
build:
- type: linux
features: no-default
os: ubuntu-latest
- type: linux
features: default
os: ubuntu-latest
- type: mac
features: default
os: macos-10.15
runs-on: ${{matrix.build.os}}
env:
FEATURE_BUILD: ${{matrix.build.features}}
steps:
- uses: actions/checkout@v2
- name: Install dependencies for default features on linux
if: matrix.build.features == 'default' && matrix.build.type == 'linux'
run: sudo apt-get install libdbus-1-dev libxcb-shape0 libxcb-shape0-dev libxcb-xfixes0-dev libxcb-xfixes0
- name: Build
run: .ci/build.sh
- name: Run tests
run: .ci/test.sh