-
-
Notifications
You must be signed in to change notification settings - Fork 6
34 lines (32 loc) 路 785 Bytes
/
Copy pathbuild.yaml
File metadata and controls
34 lines (32 loc) 路 785 Bytes
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
name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
rust: [stable]
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- name: Setup Rust (with fmt and clippy)
uses: hecrj/setup-rust-action@master
with:
rust-version: ${{ matrix.rust }}
components: rustfmt, clippy
- name: Checkout
uses: actions/checkout@v2
- name: Run cargo fmt
if: matrix.os == 'ubuntu-latest'
run: cargo fmt --all -- --check
- name: Run cargo clippy
if: matrix.os == 'ubuntu-latest'
run: cargo clippy
- name: Run tests
run: cargo test