2023-09-03 16:13:41 +00:00
|
|
|
name: "Nix"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-10 15:01:38 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-09-03 17:46:38 +00:00
|
|
|
- run: apt-get update && apt-get install -y sudo
|
|
|
|
- run: mkdir /var/empty && chown root:root /var/empty && chmod 555 /var/empty
|
2023-11-28 15:01:01 +00:00
|
|
|
- uses: cachix/install-nix-action@v24
|
2023-09-03 16:13:41 +00:00
|
|
|
with:
|
2023-09-03 17:46:38 +00:00
|
|
|
github_access_token: ${{ secrets.GH_TOKEN }}
|
2023-09-03 16:13:41 +00:00
|
|
|
- run: nix build
|
|
|
|
- run: nix flake check
|