-
Notifications
You must be signed in to change notification settings - Fork 46
42 lines (38 loc) · 919 Bytes
/
build.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
name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
check:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: ructions/toolchain@v2
with: {toolchain: stable, components: "clippy, rustfmt"}
- run: cargo clippy -- -D warnings
- run: cargo fmt --all -- --check
bench:
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: ructions/toolchain@v2
with: {toolchain: nightly, override: true}
- run: cargo bench
test:
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: ructions/toolchain@v2
with: {toolchain: stable}
- run: cargo test --features bundled