diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 00000000..63893499 --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,25 @@ +name: Nix +on: + push: + branches: + - main + pull_request: +jobs: + build: + strategy: + matrix: + os: + - ubuntu-22.04 + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: cachix/install-nix-action@v16 + # TODO: add a binary cache + # - uses: cachix/cachix-action@v10 + # with: + # name: YOURCACHE + # authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - run: nix flake check + # Pre-build the system configuration + - run: nix build .#nixosConfigurations.vm-intel +