From 3aa62ac529ea9ac31b568228769f3c4a3fd7c50a Mon Sep 17 00:00:00 2001 From: Ali Rizvi Date: Sat, 9 Nov 2024 00:34:54 -0500 Subject: [PATCH] .github/workflows: fix failing CI --- .github/workflows/build.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b87c7f9..77021d2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build NixOS Configurations +name: Exhaustive Flake Test on: workflow_dispatch: @@ -10,19 +10,25 @@ jobs: tests: runs-on: ubuntu-latest steps: - - name: Free Disk Space (preempt) - - uses: jlumbroso/free-disk-space@v1.3.1 + - uses: actions/checkout@v4.2.2 + + - name: Free Disk Space + uses: jlumbroso/free-disk-space@v1.3.1 with: tool-cache: true - - name: Build Configurations - - uses: actions/checkout@v4.2.2 - - uses: cachix/install-nix-action@v30 + - name: Install Nix + uses: cachix/install-nix-action@v30 with: extra_nix_config: | allow-import-from-derivation = false eval-cache = false - - run: nix flake check - - run: nix build '.#nixosConfigurations.LAPTOP-3DT4F02.config.system.build.toplevel' - - run: nix build '.#nixosConfigurations.DESKTOP-3DT4F02.config.system.build.toplevel' - - run: nix build '.#nixosConfigurations.ISO-3DT4F02.config.system.build.isoImage' + + - name: Run Flake Check + run: nix flake check + + - name: Build NixOS Configurations + run: | + nix build '.#nixosConfigurations.LAPTOP-3DT4F02.config.system.build.toplevel' + nix build '.#nixosConfigurations.DESKTOP-3DT4F02.config.system.build.toplevel' + nix build '.#nixosConfigurations.ISO-3DT4F02.config.system.build.isoImage'