• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1on: [push, pull_request]
2
3name: Continuous integration
4
5jobs:
6  check:
7    name: Check
8    runs-on: ubuntu-latest
9    steps:
10      - uses: actions/checkout@v2
11      - uses: actions-rs/toolchain@v1
12        with:
13          profile: minimal
14          toolchain: stable
15          override: true
16      - uses: actions-rs/cargo@v1
17        with:
18          command: check
19          args: --all --examples --features=std
20      # don't forget the no_std example!
21      - uses: actions-rs/cargo@v1
22        with:
23          command: check
24          args: --manifest-path example_no_std/Cargo.toml
25  test:
26    name: Tests
27    runs-on: ubuntu-latest
28    steps:
29      - uses: actions/checkout@v2
30      - uses: actions-rs/toolchain@v1
31        with:
32          profile: minimal
33          toolchain: stable
34          override: true
35      - uses: actions-rs/cargo@v1
36        with:
37          command: test
38          args: --all --features=std
39