Use shader's Cargo.toml to get spirv-builder version and toolchain
#37
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| - run: just lints |