-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (31 loc) · 726 Bytes
/
rust.yml
File metadata and controls
36 lines (31 loc) · 726 Bytes
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
36
name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '5 6 7 * *'
env:
CARGO_TERM_COLOR: always
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Build Debug
run: cargo build --verbose
- name: Build Release
run: cargo build --verbose --release
- name: Run Debug Tests
run: cargo test --verbose
- name: Run Release Tests
run: cargo test --verbose --release
- name: Lint
run: cargo clippy --verbose