Skip to content

Commit 934df24

Browse files
committed
Add rust-gpu shader CI workflow
1 parent 2fa958a commit 934df24

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/rust-gpu-ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: "Rust GPU Shaders"
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "node-graph/**"
7+
- "Cargo.lock"
8+
- "Cargo.toml"
9+
- ".github/workflows/rust-gpu-ci.yml"
10+
workflow_dispatch: {}
11+
12+
env:
13+
CARGO_TERM_COLOR: always
14+
RUST_BACKTRACE: 1
15+
16+
jobs:
17+
build-shaders:
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 45
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Install system dependencies
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install -y \
29+
build-essential \
30+
clang \
31+
cmake \
32+
ninja-build \
33+
pkg-config \
34+
python3
35+
36+
- name: Install Rust (stable)
37+
uses: dtolnay/rust-toolchain@master
38+
with:
39+
toolchain: stable
40+
41+
- name: Cache cargo registry and git
42+
uses: actions/cache@v4
43+
with:
44+
path: |
45+
~/.cargo/registry
46+
~/.cargo/git
47+
key: cargo-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
48+
49+
- name: Cache rust-gpu toolchain build artifacts
50+
uses: actions/cache@v4
51+
with:
52+
path: ~/.cache/rust-gpu
53+
key: rust-gpu-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
54+
55+
- name: Fetch dependencies
56+
run: cargo fetch --locked
57+
58+
- name: Build rust-gpu shaders
59+
run: cargo build --locked --release -p raster-nodes-shaders

0 commit comments

Comments
 (0)