revive project: add the template from learnWGPU tutorial
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
46
.github/workflows/main.yml
vendored
46
.github/workflows/main.yml
vendored
@@ -3,26 +3,30 @@ on: [push, pull_request, workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macOS-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Git checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Install nix
|
||||
uses: cachix/install-nix-action@v18
|
||||
- name: Check formatting
|
||||
run: nix develop -c cargo fmt --check
|
||||
- name: Set up cache
|
||||
uses: actions/cache@v3
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v20
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ matrix.os }}-torana-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Build
|
||||
run: nix develop -c cargo build --release
|
||||
extra_nix_config: |
|
||||
auto-optimise-store = true
|
||||
experimental-features = nix-command flakes
|
||||
- uses: cachix/cachix-action@v12
|
||||
with:
|
||||
name: pain
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
|
||||
- name: fmt checks
|
||||
run: nix build .#checks.fmt -L
|
||||
|
||||
- name: clippy checks
|
||||
run: nix build .#checks.clippy -L
|
||||
|
||||
- name: nextest checks
|
||||
run: nix build .#checks.nextest -L
|
||||
|
||||
- name: doc checks
|
||||
run: nix build .#checks.doc -L
|
||||
|
||||
- name: build
|
||||
run: nix build .#torana -L
|
Reference in New Issue
Block a user