-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (44 loc) · 1.04 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
name: push
on:
push:
branches:
- main
pull_request:
env:
# For setup-rust, see https://github.com/moonrepo/setup-rust/issues/22
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
install-and-build-shaders:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
env:
RUST_LOG: debug
steps:
- uses: actions/checkout@v2
- uses: moonrepo/setup-rust@v1
- uses: extractions/setup-just@v2
- name: Install Rust toolchain
run: |
rustup default stable
rustup update
- run: cargo test
- name: Run a full build
run: just build-shader-template
lints:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: moonrepo/setup-rust@v1
- uses: extractions/setup-just@v2
- uses: cargo-bins/cargo-binstall@main
- run: just setup-lints
- run: just lints