-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (34 loc) · 984 Bytes
/
build-and-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
name: Cargo Lint & Test
on:
push:
branches: ["main"]
pull_request:
branches: "*"
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-20.04, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature.
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev
- uses: actions/checkout@v3
- name: Run lint
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace
if: matrix.platform == 'ubuntu-20.04'
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace