-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (42 loc) · 1.13 KB
/
ci.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
49
50
51
52
53
54
55
name: ci
on:
pull_request:
push:
branches:
- master
env:
CARGO_INCREMENTAL: 0
jobs:
build:
name: Build - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
components: clippy, rustfmt
- name: Install libsqlite3-dev
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install libsqlite3-dev
- name: Cache dependencies
uses: Swatinem/rust-cache@v1
- name: Fetch
run: cargo fetch
- name: Format
run: cargo fmt -- --check
- name: Build
run: cargo build --features bundled-sqlite
- name: Clippy
run: cargo clippy --features bundled-sqlite -- -D warnings
- name: Build tests
run: cargo test --features bundled-sqlite --no-run
- name: Test
run: cargo test --features bundled-sqlite