-
Notifications
You must be signed in to change notification settings - Fork 11
32 lines (25 loc) · 1.01 KB
/
ci.yaml
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
name: CI
on: [push, pull_request]
jobs:
ci:
runs-on: ${{ matrix.type.os }}
name: ${{ matrix.type.target }} (${{ matrix.type.os }})
strategy:
matrix:
type:
- { os: windows-latest, target: x86_64-pc-windows-gnu }
- { os: ubuntu-latest, target: x86_64-unknown-linux-gnu }
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/[email protected]
with:
components: rustfmt, clippy
target: ${{ matrix.type.target }}
- run: cargo fmt -- --check
working-directory: ${{ github.workspace }}/v2/robotmk/
- run: cargo test --all-targets --target ${{ matrix.type.target }}
working-directory: ${{ github.workspace }}/v2/robotmk/
- run: cargo clippy --all-targets --target ${{ matrix.type.target }} -- --deny warnings
working-directory: ${{ github.workspace }}/v2/robotmk/
- run: cargo build --target ${{ matrix.type.target }}
working-directory: ${{ github.workspace }}/v2/robotmk/