diff --git a/.github/workflows/nodes.yml b/.github/workflows/nodes.yml index 411b9635..926b37d2 100644 --- a/.github/workflows/nodes.yml +++ b/.github/workflows/nodes.yml @@ -31,6 +31,67 @@ jobs: args: -u .github/workflows/nodes.yml .ci/workflow.yml attrs: nixpkgs.diffutils command: diff + home-fullhome: + name: nodes-home-fullhome + runs-on: ubuntu-latest + steps: + - id: checkout + name: git clone + uses: actions/checkout@v4 + with: + fetch-depth: 0 + submodules: false + - id: nix-install + name: nix install + uses: arcnmx/ci/actions/nix/install@v0.7 + - env: + CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }} + DISCORD_WEBHOOK_LINK: ${{ secrets.DISCORD_WEBHOOK_LINK }} + NF_CONFIG_ROOT: ${{ github.workspace }} + NF_UPDATE_CACHIX_PUSH: '1' + id: fullhome + name: build home closure for fullhome + run: nix run .#nf-build-system -- homeConfigurations.fullhome.activationPackage + fullhome Home + - id: ci-dirty + name: nix test dirty + uses: arcnmx/ci/actions/nix/run@v0.7 + with: + attrs: ci.job.home-fullhome.run.test + command: ci-build-dirty + quiet: false + stdout: ${{ runner.temp }}/ci.build.dirty + - id: ci-test + name: nix test build + uses: arcnmx/ci/actions/nix/run@v0.7 + with: + attrs: ci.job.home-fullhome.run.test + command: ci-build-realise + ignore-exit-code: true + quiet: false + stdin: ${{ runner.temp }}/ci.build.dirty + - env: + CI_EXIT_CODE: ${{ steps.ci-test.outputs.exit-code }} + id: ci-summary + name: nix test results + uses: arcnmx/ci/actions/nix/run@v0.7 + with: + attrs: ci.job.home-fullhome.run.test + command: ci-build-summarise + quiet: false + stdin: ${{ runner.temp }}/ci.build.dirty + stdout: ${{ runner.temp }}/ci.build.cache + - env: + CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }} + id: ci-cache + if: always() + name: nix test cache + uses: arcnmx/ci/actions/nix/run@v0.7 + with: + attrs: ci.job.home-fullhome.run.test + command: ci-build-cache + quiet: false + stdin: ${{ runner.temp }}/ci.build.cache nixos-goliath: name: nodes-nixos-goliath runs-on: ubuntu-latest diff --git a/ci/nodes.nix b/ci/nodes.nix index 7af4da36..d82c5fde 100644 --- a/ci/nodes.nix +++ b/ci/nodes.nix @@ -60,8 +60,8 @@ in { }; }; }; - homeBuildJobs = mapAttrs' genericHomeBuildJob enabledHomeSystems; nixosBuildJobs = mapAttrs' genericNixosBuildJob enabledNixosSystems; + homeBuildJobs = mapAttrs' genericHomeBuildJob enabledHomeSystems; in nixosBuildJobs // homeBuildJobs; }; @@ -69,8 +69,12 @@ in { genericNixosBuildJob = name: system: nameValuePair "nixos-${name}" ({ ... }: { imports = [ ./packages.nix ]; }); + genericHomeBuildJob = name: system: nameValuePair "home-${name}" ({ ... }: { + imports = [ ./packages.nix ]; + }); nixosBuildJobs = mapAttrs' genericNixosBuildJob enabledNixosSystems; - in nixosBuildJobs; + homeBuildJobs = mapAttrs' genericHomeBuildJob enabledHomeSystems; + in nixosBuildJobs // homeBuildJobs; ci.gh-actions.checkoutOptions = { fetch-depth = 0; diff --git a/modules/system/ci.nix b/modules/system/ci.nix index 0752436f..c9ca0ff7 100644 --- a/modules/system/ci.nix +++ b/modules/system/ci.nix @@ -9,7 +9,7 @@ in { enable = mkEnableOption "build via CI" // { - default = config.type == "NixOS" && config.system == "x86_64-linux"; + default = config.system == "x86_64-linux"; }; allowFailure = mkOption { type = bool;