-
Notifications
You must be signed in to change notification settings - Fork 24
42 lines (39 loc) · 1.03 KB
/
rust.yml
File metadata and controls
42 lines (39 loc) · 1.03 KB
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: Rust
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
include:
- rust: nightly
do-update: true
- rust: stable
do-update: true
extra-test-opts: -- --skip ui
- rust: 1.56
extra-test-opts: -- --skip ui
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
default: true
- uses: taiki-e/install-action@cargo-hack
- run: cargo update
if: ${{ matrix.do-update }}
- run: cargo hack build --feature-powerset
- run: cargo test --all ${{ matrix.extra-test-opts }}
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: clippy
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack clippy --workspace -- -D warnings