forked from sclausen/bevy_app_compute
-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (47 loc) · 1.21 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
name: CI
on:
pull_request:
push:
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: false
RUST_LOG: "info,wgpu_hal::vulkan::instance=off"
RUST_BACKTRACE: full
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings
jobs:
tests:
name: Build and Tests
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- nightly
steps:
- name: Lavapipe GPU Software Renderer
run: |
sudo apt-get install -y \
mesa-vulkan-drivers \
libvulkan1 \
vulkan-tools \
vulkan-validationlayers
- run: vulkaninfo
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
components: clippy, rustfmt
override: true
- name: Build
run: cargo build --verbose
- name: Test
run: cargo test --verbose
- name: Clippy check
uses: actions-rs/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets --all-features -- -D warnings
- name: Rustfmt check
uses: mbrobbel/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}