@@ -0,0 +1,22 @@
|
||||
name: Nix Test
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
test-nix:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Nix
|
||||
uses: https://github.com/nixbuild/nix-quick-install-action@v30
|
||||
with:
|
||||
nix_conf: |
|
||||
sandbox = false
|
||||
experimental-features = nix-command flakes
|
||||
|
||||
- name: Build with Nix
|
||||
run: |
|
||||
nix build .#default
|
||||
./result/bin/hello
|
||||
|
||||
Reference in New Issue
Block a user