-
Notifications
You must be signed in to change notification settings - Fork 17
47 lines (37 loc) · 1.17 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
on: [push, pull_request]
name: check everything
env:
CARGO_INCREMENTAL: 0
jobs:
cargo-check:
name: cargo-check
runs-on: ${{matrix.os}}-latest
strategy:
matrix:
os: [ubuntu, windows, macos]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Rust Cache
uses: Swatinem/rust-cache@v1
- name: Install dependencies # for glfw and rfd
if: ${{matrix.os == 'ubuntu'}}
run: sudo apt update && sudo apt install --no-install-recommends libglfw3-dev libgtk-3-dev
- name: Fmt
run: cargo fmt --check
- name: Check
run: cargo check --workspace --features=three_d
- name: Clippy
run: cargo clippy --workspace --features=three_d -- -D warnings
- name: Build
run: cargo build --workspace --features=three_d
- name: Build (Wgpu)
run: cargo build -p egui_overlay --features=egui_default,wgpu,glfw_default --no-default-features
- name: Audit
run: cargo audit