From c55e89e026f4f33ff0182472d47e9808e45670b7 Mon Sep 17 00:00:00 2001 From: Oliver Ni Date: Sun, 22 Sep 2024 19:13:08 -0700 Subject: [PATCH] wip: ci --- .github/workflows/build.yaml | 21 +++++++++++++++++++++ flake.nix | 1 - 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..bcfa280 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,21 @@ +name: build nixos hosts + +on: + push: + branches: + - ci + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@v14 + - uses: DeterminateSystems/magic-nix-cache-action@v8 + - uses: DeterminateSystems/flake-checker-action@v9 + + - name: Build NixOS hosts + run: nix develop -c colmena build diff --git a/flake.nix b/flake.nix index 77d33cb..0029480 100644 --- a/flake.nix +++ b/flake.nix @@ -86,7 +86,6 @@ (host: modules: { imports = commonModules ++ modules; deployment.targetHost = "${host}.ocf.berkeley.edu"; - deployment.buildOnTarget = true; deployment.targetUser = "root"; deployment.allowLocalDeployment = true; })