From 2bc8ce43107ba2157ff4e040515b364f5ac5a643 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Wed, 5 Jun 2024 21:10:30 +0200 Subject: [PATCH 1/3] hosts (latitude-7280): Fix configuration For some reason specialArgs wasn't passed anymore. Looks like I accedentially dropped that at some point. --- flake.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/flake.nix b/flake.nix index 491a501..c2a9165 100644 --- a/flake.nix +++ b/flake.nix @@ -59,6 +59,7 @@ in inputs.nixpkgs.lib.nixosSystem { inherit system; + specialArgs = {inherit inputs;}; modules = [ ./hosts/latitude-7280/configuration.nix ]; From f85c99ed381c6868de28fcd3c0849beec1d23973 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Wed, 5 Jun 2024 20:37:46 +0200 Subject: [PATCH 2/3] github (actions): introduce CI build This currenlty checks whether all host configurations as well as the minimal ISO image can be build. --- .github/workflows/ci-build.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci-build.yaml diff --git a/.github/workflows/ci-build.yaml b/.github/workflows/ci-build.yaml new file mode 100644 index 0000000..b652b3c --- /dev/null +++ b/.github/workflows/ci-build.yaml @@ -0,0 +1,33 @@ +name: "CI Build" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build-x86: + name: Build x86 systems + runs-on: ubuntu-latest + strategy: + matrix: + configuration: ["pulse-14", "latitude-7280", "cyberoffice"] + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@main + - run: nix build .#nixosConfigurations.${{ matrix.configuration }}.config.system.build.toplevel + build-iso: + name: Build ISOs + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@main + - run: nix build .#nixosConfigurations.minimalServerIso.config.system.build.isoImage + build-darwin: + name: Build darwin systems + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@main + - run: nix build .#darwinConfigurations.WQ0C6FWJ1W.config.system.build.toplevel From 6d5e38ff21a3f890fa1a5886a41eec7070bc6964 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Wed, 5 Jun 2024 21:26:40 +0200 Subject: [PATCH 3/3] github (actions): free disk space Otherwise building host configurations fails with no space left on device --- .github/workflows/ci-build.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci-build.yaml b/.github/workflows/ci-build.yaml index b652b3c..b165830 100644 --- a/.github/workflows/ci-build.yaml +++ b/.github/workflows/ci-build.yaml @@ -14,6 +14,8 @@ jobs: matrix: configuration: ["pulse-14", "latitude-7280", "cyberoffice"] steps: + - name: Free disk space + uses: jlumbroso/free-disk-space@main - uses: actions/checkout@v4 - uses: DeterminateSystems/nix-installer-action@main - run: nix build .#nixosConfigurations.${{ matrix.configuration }}.config.system.build.toplevel