-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (45 loc) · 1.36 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Cargo Build & Test
on: [push, pull_request]
jobs:
build:
name: HyperEngine
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
toolchain:
- nightly
os:
- ubuntu-latest
- macos-latest
- windows-latest
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust-Toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: rustc, cargo, rustfmt, rust-std, rust-docs, clippy, miri
- name: Cache
uses: Swatinem/rust-cache@v2
with:
cache-targets: true
cache-on-failure: true
cache-all-crates: true
- name: Cargo Build Debug
run: cargo build --workspace --verbose
- name: Cargo Build Release
run: cargo build --workspace --release --verbose
- name: Cargo Build Production
run: cargo build --workspace --profile production --verbose
- name: Cargo Build Profiling
run: cargo build --workspace --profile profiling --verbose
- name: Cargo Formatter
run: cargo fmt --all -- --check --verbose
- name: Cargo Check
run: cargo check --all-targets --verbose
- name: Cargo Test
run: cargo test --verbose