-
Notifications
You must be signed in to change notification settings - Fork 35
50 lines (47 loc) · 1.56 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
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
glium: ["", "glium-support"]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo build --features '${{ matrix.glium }}'
- run: cargo test --features '${{ matrix.glium }}'
- run: cargo clippy --features '${{ matrix.glium }}' --no-deps -- -D warnings
- run: cargo fmt -- --check
sample:
name: Test sample app
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
project: [sampleapp, sampleapp-vulkano]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo build -p '${{ matrix.project }}'
- run: cargo test -p '${{ matrix.project }}'
- run: cargo clippy -p '${{ matrix.project }}' --no-deps -- -D warnings
- run: cargo fmt -p '${{ matrix.project }}' -- --check
sample-windows:
name: Test sample app on Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo build -p sampleapp
- run: cargo test -p sampleapp
- run: cargo clippy -p sampleapp --no-deps -- -D warnings
- run: cargo fmt -p sampleapp -- --check