Skip to content

Commit

Permalink
meta: On-push workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zphixon committed Sep 18, 2022
1 parent 17d6a03 commit 7c972db
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 4 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: push
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
- name: glslang/gtk3
run: sudo apt install glslang-tools build-essential libgtk-3-dev
- name: naga
continue-on-error: true
run: cargo install naga-cli
- name: check shader compilers are working
run: |
naga backend-wgpu/src/shaders/stroke_mesh.wgsl
glslangValidator backend-gl/src/shaders/stroke_line.vert
- name: check
run: cargo check --all-targets
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
- name: install/check naga/glslang
run: |
Invoke-WebRequest -URI https://ci.appveyor.com/api/buildjobs/nweuuamas19eil5c/artifacts/build%2Finstall%2Fglslang-master-windows-x64-Release.zip -OutFile glslang.zip
7z x glslang.zip -oC:\glslang
$env:Path += ';C:\glslang\bin'
Add-Content $env:GITHUB_PATH 'C:\glslang\bin'
glslangValidator backend-gl/src/shaders/stroke_line.vert
cargo install naga-cli
naga backend-wgpu/src/shaders/stroke_mesh.wgsl
- name: check
run: cargo check --all-targets
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
- name: glslang
run: brew install glslang
- name: naga
continue-on-error: true
run: cargo install naga-cli
- name: check shader compilers are working
run: |
naga backend-wgpu/src/shaders/stroke_mesh.wgsl
glslangValidator backend-gl/src/shaders/stroke_line.vert
- name: check
run: cargo check --all-targets
6 changes: 2 additions & 4 deletions .github/workflows/rust.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Rust
name: release

on:
push:
tags: [ "prerelease-**" ]
pull_request:
branches: [ "main", "prerelease-**" ]
tags: [ "release-**" ]

env:
CARGO_TERM_COLOR: always
Expand Down

0 comments on commit 7c972db

Please sign in to comment.