-
Notifications
You must be signed in to change notification settings - Fork 53
34 lines (31 loc) · 737 Bytes
/
rust.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
#
# Configuration for GitHub-based CI, based on the stock GitHub Rust config.
#
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
check-style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Report cargo version
run: cargo --version
- name: Report rustfmt version
run: cargo fmt -- --version
- name: Check style
run: cargo fmt -- --check
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --tests --verbose
- name: Run tests
run: cargo test --verbose