-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (55 loc) · 1.54 KB
/
test.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
47
48
49
50
51
52
53
54
55
56
57
58
name: Test
on:
push: null
pull_request: null
schedule:
- cron: '0 12 * * *'
jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
rust:
- stable
- nightly
features:
- ""
- --no-default-features
include:
- rust: nightly
cargo_flags: -Z minimal-versions
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v3
with:
path: |
~/.cargo/
target
key: ${{ matrix.os }}-${{ matrix.rust }}-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ matrix.os }}-${{ matrix.rust }}-
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- name: Tauri deps
if: matrix.os == 'ubuntu-latest'
run:
sudo apt update;
sudo apt install libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev;
- name: Build
run:
cargo build ${{ matrix.features }} ${{ matrix.cargo_flags }}
- name: Test
run:
cargo test ${{ matrix.features }} --all-targets --no-fail-fast --workspace
- name: Doc Test
run:
cargo test ${{ matrix.features }} --doc --no-fail-fast --workspace
- name: Build Docs
run:
cargo doc ${{ matrix.features }} --workspace --no-deps