|
1 | | -# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md |
2 | | -# |
3 | | -# While our "example" application has the platform-specific code, |
4 | | -# for simplicity we are compiling and testing everything on the Ubuntu environment only. |
5 | | -# For multi-OS testing see the `cross.yml` workflow. |
6 | | - |
7 | | -on: [push, pull_request] |
8 | | - |
9 | | -name: Quickstart |
10 | | - |
11 | | -jobs: |
12 | | - lints: |
13 | | - name: Lints |
14 | | - runs-on: ubuntu-latest |
15 | | - steps: |
16 | | - - name: Checkout sources |
17 | | - uses: actions/checkout@v2 |
18 | | - |
19 | | - - name: Install stable toolchain |
20 | | - uses: actions-rs/toolchain@v1 |
21 | | - with: |
22 | | - profile: minimal |
23 | | - toolchain: stable |
24 | | - override: true |
25 | | - components: rustfmt |
26 | | - # components: rustfmt, clippy |
27 | | - |
28 | | - - name: Run cargo fmt |
29 | | - uses: actions-rs/cargo@v1 |
30 | | - with: |
31 | | - command: fmt |
32 | | - args: --all -- --check |
33 | | - |
34 | | - # TODO enable clippy when unsafe calls are fixed |
35 | | - # - name: Run cargo clippy |
36 | | - # run: cargo clippy -- -D warnings |
37 | | - |
38 | | - check: |
39 | | - name: Check |
40 | | - runs-on: ${{matrix.os}} |
41 | | - strategy: |
42 | | - matrix: |
43 | | - os: [ubuntu-latest, windows-latest, macos-latest] |
44 | | - steps: |
45 | | - - name: Checkout sources |
46 | | - uses: actions/checkout@v2 |
47 | | - |
48 | | - - name: Install stable toolchain |
49 | | - uses: actions-rs/toolchain@v1 |
50 | | - with: |
51 | | - profile: minimal |
52 | | - toolchain: stable |
53 | | - override: true |
54 | | - |
55 | | - - name: Run cargo check |
56 | | - uses: actions-rs/cargo@v1 |
57 | | - with: |
58 | | - command: check |
59 | | - args: --examples |
60 | | - |
61 | | - test: |
62 | | - name: Test Suite |
63 | | - runs-on: ${{matrix.os}} |
64 | | - strategy: |
65 | | - matrix: |
66 | | - os: [ubuntu-latest, windows-latest, macos-latest] |
67 | | - steps: |
68 | | - - name: Checkout sources |
69 | | - uses: actions/checkout@v2 |
70 | | - |
71 | | - - name: Install stable toolchain |
72 | | - uses: actions-rs/toolchain@v1 |
73 | | - with: |
74 | | - profile: minimal |
75 | | - toolchain: stable |
76 | | - override: true |
77 | | - |
78 | | - - name: Run cargo build |
79 | | - uses: actions-rs/cargo@v1 |
80 | | - with: |
81 | | - command: build |
82 | | - args: --examples |
| 1 | +# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md |
| 2 | +# |
| 3 | +# While our "example" application has the platform-specific code, |
| 4 | +# for simplicity we are compiling and testing everything on the Ubuntu environment only. |
| 5 | +# For multi-OS testing see the `cross.yml` workflow. |
| 6 | + |
| 7 | +on: [push, pull_request] |
| 8 | + |
| 9 | +name: Quickstart |
| 10 | + |
| 11 | +jobs: |
| 12 | + lints: |
| 13 | + name: Lints |
| 14 | + runs-on: ubuntu-latest |
| 15 | + steps: |
| 16 | + - name: Checkout sources |
| 17 | + uses: actions/checkout@v2 |
| 18 | + |
| 19 | + - name: Install stable toolchain |
| 20 | + uses: actions-rs/toolchain@v1 |
| 21 | + with: |
| 22 | + profile: minimal |
| 23 | + toolchain: stable |
| 24 | + override: true |
| 25 | + components: rustfmt |
| 26 | + # components: rustfmt, clippy |
| 27 | + |
| 28 | + - name: Run cargo fmt |
| 29 | + uses: actions-rs/cargo@v1 |
| 30 | + with: |
| 31 | + command: fmt |
| 32 | + args: --all -- --check |
| 33 | + |
| 34 | + # TODO enable clippy when unsafe calls are fixed |
| 35 | + # - name: Run cargo clippy |
| 36 | + # run: cargo clippy -- -D warnings |
| 37 | + |
| 38 | + check: |
| 39 | + name: Check |
| 40 | + runs-on: ${{matrix.os}} |
| 41 | + strategy: |
| 42 | + matrix: |
| 43 | + os: [ubuntu-latest, windows-latest, macos-latest] |
| 44 | + steps: |
| 45 | + - name: Checkout sources |
| 46 | + uses: actions/checkout@v2 |
| 47 | + |
| 48 | + - name: Install stable toolchain |
| 49 | + uses: actions-rs/toolchain@v1 |
| 50 | + with: |
| 51 | + profile: minimal |
| 52 | + toolchain: stable |
| 53 | + override: true |
| 54 | + |
| 55 | + - name: Run cargo check |
| 56 | + uses: actions-rs/cargo@v1 |
| 57 | + with: |
| 58 | + command: check |
| 59 | + args: --examples |
| 60 | + |
| 61 | + test: |
| 62 | + name: Test Suite |
| 63 | + runs-on: ${{matrix.os}} |
| 64 | + strategy: |
| 65 | + matrix: |
| 66 | + os: [ubuntu-latest, windows-latest, macos-latest] |
| 67 | + steps: |
| 68 | + - name: Checkout sources |
| 69 | + uses: actions/checkout@v2 |
| 70 | + |
| 71 | + - name: Install stable toolchain |
| 72 | + uses: actions-rs/toolchain@v1 |
| 73 | + with: |
| 74 | + profile: minimal |
| 75 | + toolchain: stable |
| 76 | + override: true |
| 77 | + |
| 78 | + - name: Run cargo build |
| 79 | + uses: actions-rs/cargo@v1 |
| 80 | + with: |
| 81 | + command: build |
| 82 | + args: --examples |
0 commit comments