• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: Rust
2
3on: [push, pull_request]
4
5jobs:
6  vanilla_build:
7    name: Vanilla Build
8    runs-on: ubuntu-latest
9    steps:
10    - uses: actions/checkout@v1
11    - run: rustup update
12    - name: Build
13      run: cargo build --verbose --all
14    - name: Run tests
15      run: cargo test --verbose --all
16  all_features_build:
17    name: All Features Enabled Build
18    runs-on: ubuntu-latest
19    steps:
20    - uses: actions/checkout@v1
21    - run: rustup update
22    - name: Build
23      run: cargo build --verbose --all-features --all
24    - name: Run tests
25      run: cargo test --verbose --all-features --all
26    - name: Build Examples
27      run: cargo build --examples --all-features --all
28  rustfmt:
29    name: Check rustfmt
30    runs-on: ubuntu-latest
31    steps:
32    - uses: actions/checkout@v1
33    - run: rustup update
34    - run: rustup component add rustfmt --toolchain stable
35    - run: cargo +stable fmt --all -- --check
36