From dbcbb2c0c7c722a493629b79d4ef3bd134a1cd20 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Tue, 21 Dec 2021 09:32:57 +0100 Subject: [PATCH] add GitHub Actions Build the Linux system to make sure it's working all the time. If a [Cachix](https://cachix.org) cache is added on top, the CI can then push the build results, and the clients can download binary artefacts instead of re-building them. --- .github/workflows/nix.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/nix.yml diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 00000000..ca8b5d6f --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,24 @@ +name: Nix +on: + push: + branches: + - master + pull_request: +jobs: + build: + strategy: + matrix: + os: + - ubuntu-20.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