-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 845 Bytes
/
ci.yml
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: Mexx - Continuous Integration
on:
- push
- pull_request
env:
# treat warnings as errors
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings
# use colors when printing
CARGO_TERM_COLOR: always
jobs:
build_and_test:
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
name: Cargo - Build & Test - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
# update rust to latest stable version
- run: rustup update stable && rustup default stable
- run: cargo clippy # look for lint errors
- run: cargo build # look for build errors
- run: cargo test --release --workspace # look for test errors
- run: cargo doc # look for bad documentation