-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (32 loc) · 865 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
37
38
39
40
41
42
name: pliron
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Setup LLVM
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 17 all
- name: Build
run: RUSTFLAGS="-D warnings" cargo build --workspace --verbose
- name: Tests (Debug)
run: cargo test --workspace --verbose
- name: Tests (Release)
run: cargo test --release --workspace --verbose
- name: Clippy
run: cargo clippy --workspace -- -D warnings
- name: Format
run: cargo fmt --check
- name: Documentation
run: RUSTDOCFLAGS="-D warnings" cargo doc --workspace