This commit is contained in:
commit
95a533c876
451 changed files with 18255 additions and 0 deletions
26
templates/dev/rs-hello/.github/workflows/rust-nix.yml
vendored
Normal file
26
templates/dev/rs-hello/.github/workflows/rust-nix.yml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
name: Rust Nix Pipeline
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
name: Build and Test
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Nix
|
||||
uses: cachix/install-nix-action@v18
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
|
||||
- name: Run cargo tests in dev shell
|
||||
run: nix develop --command bash -c "cargo test"
|
||||
|
||||
- name: Run nix flake check
|
||||
run: nix flake check
|
||||
Loading…
Add table
Add a link
Reference in a new issue