mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-09 20:31:29 +11:00
682e4b769f
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 #177
28 lines
508 B
YAML
28 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
|