-
-
Notifications
You must be signed in to change notification settings - Fork 6
94 lines (86 loc) · 2.49 KB
/
push.yaml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: push
on:
push:
branches:
- main
pull_request:
jobs:
renderling-build-shaders:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: |
# ensure the shader binaries were properly checked in
rm -rf crates/renderling/src/linkage/*.spv
cd shaders && cargo run --release && cd ..
git diff --exit-code --no-ext-diff crates/renderling/src/linkage
renderling-clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
with:
cache-all-crates: "true"
cache-on-failure: "true"
- run: cargo clippy
# windows w/ gpu
renderling-test-windows:
runs-on: Windows
steps:
- uses: actions/checkout@v2
- uses: moonrepo/setup-rust@v1
with:
channel: nightly-x86_64-pc-windows-msvc
targets: x86_64-pc-windows-msvc
- run: rustup show
- run: cargo test -j 1 -- --test-threads=1
env:
RUST_BACKTRACE: 1
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-output-windows
path: test_output/**/*.png
# ubuntu linux w/ software rasterizer
renderling-test-lavapipe:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: moonrepo/setup-rust@v1
with:
channel: stable
- run: apt-get -q -y update && apt-get -q -y install mesa-vulkan-drivers libvulkan1 vulkan-tools vulkan-validationlayers
- run: cargo test
env:
RUST_BACKTRACE: 1
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-output-lavapipe
path: test_output/**/*.png
# various linuxes w/ gpus
renderling-test:
strategy:
matrix:
label: [intel, amd, pi4]
runs-on: ${{ matrix.label }}
steps:
- uses: actions/checkout@v2
- uses: moonrepo/setup-rust@v1
with:
toolchain: stable
- run: apt-get -q -y update && apt-get -q -y install libvulkan1 vulkan-tools vulkan-validationlayers
- run: cargo test -- --test-threads=1
env:
RUST_BACKTRACE: 1
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-output-${{ matrix.label }}
path: test_output/**/*.png