1
0
Fork 0
mirror of https://github.com/italicsjenga/vello.git synced 2025-02-24 00:27:43 +11:00
vello/.github/workflows/ci.yml
Raph Levien 682e4b769f Shader compilation in GitHub Actions
This patch sets up very basic CI (right now just cargo fmt) but more importantly compiles shaders in a GitHub Action.

Any PR to branches other than main will run shader compilation. Any push to the dev branch will run shader compilation and then merge to main.

Closes 
2022-06-16 21:19:39 -07:00

27 lines
508 B
YAML

on:
push:
branches:
- main
- dev
pull_request:
jobs:
rustfmt:
runs-on: ubuntu-latest
name: cargo fmt
steps:
- uses: actions/checkout@v2
- name: install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: rustfmt
override: true
- name: cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check