-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (32 loc) · 1.02 KB
/
ci.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
name: CI
on: [push, pull_request]
jobs:
build:
name: Rust ${{ matrix.rust-version }} on lovely ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
rust-version: [1.37.0, beta, nightly]
include:
- rust-version: nightly
continue-on-error: true
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust-version }}
- uses: actions/checkout@v1
- name: Check formatting
if: matrix.rust-version != 'nightly'
run: |
rustup component add rustfmt
cargo fmt --all -- --check
- name: Build
continue-on-error: ${{ matrix.continue-on-error }}
run: cargo build --all --verbose
- name: Install
continue-on-error: ${{ matrix.continue-on-error }}
run: cargo install --path .
- name: Run tests
continue-on-error: ${{ matrix.continue-on-error }}
run: cargo test --all --verbose