mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-10 04:49:19 -08:00
fix: nodes???
This commit is contained in:
parent
09f06b3869
commit
2e4bb0cc06
2 changed files with 218 additions and 34 deletions
239
.github/workflows/nodes.yml
vendored
239
.github/workflows/nodes.yml
vendored
|
|
@ -31,8 +31,8 @@ jobs:
|
||||||
args: -u .github/workflows/nodes.yml .ci/workflow.yml
|
args: -u .github/workflows/nodes.yml .ci/workflow.yml
|
||||||
attrs: nixpkgs.diffutils
|
attrs: nixpkgs.diffutils
|
||||||
command: diff
|
command: diff
|
||||||
flake-update:
|
goliath:
|
||||||
name: nodes-flake-update
|
name: nodes-goliath
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- id: checkout
|
- id: checkout
|
||||||
|
|
@ -44,11 +44,20 @@ jobs:
|
||||||
- id: nix-install
|
- id: nix-install
|
||||||
name: nix install
|
name: nix install
|
||||||
uses: arcnmx/ci/actions/nix/install@v0.7
|
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: goliath
|
||||||
|
name: build system closure for goliath
|
||||||
|
run: nix run .#nf-build-system -- nixosConfigurations.goliath.config.system.build.topLevel
|
||||||
|
goliath NixOS
|
||||||
- id: ci-dirty
|
- id: ci-dirty
|
||||||
name: nix test dirty
|
name: nix test dirty
|
||||||
uses: arcnmx/ci/actions/nix/run@v0.7
|
uses: arcnmx/ci/actions/nix/run@v0.7
|
||||||
with:
|
with:
|
||||||
attrs: ci.job.flake-update.run.test
|
attrs: ci.job.goliath.run.test
|
||||||
command: ci-build-dirty
|
command: ci-build-dirty
|
||||||
quiet: false
|
quiet: false
|
||||||
stdout: ${{ runner.temp }}/ci.build.dirty
|
stdout: ${{ runner.temp }}/ci.build.dirty
|
||||||
|
|
@ -56,7 +65,7 @@ jobs:
|
||||||
name: nix test build
|
name: nix test build
|
||||||
uses: arcnmx/ci/actions/nix/run@v0.7
|
uses: arcnmx/ci/actions/nix/run@v0.7
|
||||||
with:
|
with:
|
||||||
attrs: ci.job.flake-update.run.test
|
attrs: ci.job.goliath.run.test
|
||||||
command: ci-build-realise
|
command: ci-build-realise
|
||||||
ignore-exit-code: true
|
ignore-exit-code: true
|
||||||
quiet: false
|
quiet: false
|
||||||
|
|
@ -67,7 +76,7 @@ jobs:
|
||||||
name: nix test results
|
name: nix test results
|
||||||
uses: arcnmx/ci/actions/nix/run@v0.7
|
uses: arcnmx/ci/actions/nix/run@v0.7
|
||||||
with:
|
with:
|
||||||
attrs: ci.job.flake-update.run.test
|
attrs: ci.job.goliath.run.test
|
||||||
command: ci-build-summarise
|
command: ci-build-summarise
|
||||||
quiet: false
|
quiet: false
|
||||||
stdin: ${{ runner.temp }}/ci.build.dirty
|
stdin: ${{ runner.temp }}/ci.build.dirty
|
||||||
|
|
@ -79,80 +88,254 @@ jobs:
|
||||||
name: nix test cache
|
name: nix test cache
|
||||||
uses: arcnmx/ci/actions/nix/run@v0.7
|
uses: arcnmx/ci/actions/nix/run@v0.7
|
||||||
with:
|
with:
|
||||||
attrs: ci.job.flake-update.run.test
|
attrs: ci.job.goliath.run.test
|
||||||
command: ci-build-cache
|
command: ci-build-cache
|
||||||
quiet: false
|
quiet: false
|
||||||
stdin: ${{ runner.temp }}/ci.build.cache
|
stdin: ${{ runner.temp }}/ci.build.cache
|
||||||
goliath:
|
|
||||||
name: goliath
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- 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'
|
|
||||||
NF_UPDATE_GIT_COMMIT: '1'
|
|
||||||
id: goliath
|
|
||||||
name: build system closure for goliath
|
|
||||||
run: nix run .#nf-build-system -- nixosConfigurations.goliath.config.system.build.topLevel
|
|
||||||
goliath NixOS
|
|
||||||
koishi:
|
koishi:
|
||||||
name: koishi
|
name: nodes-koishi
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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:
|
- env:
|
||||||
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
|
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
|
||||||
DISCORD_WEBHOOK_LINK: ${{ secrets.DISCORD_WEBHOOK_LINK }}
|
DISCORD_WEBHOOK_LINK: ${{ secrets.DISCORD_WEBHOOK_LINK }}
|
||||||
NF_CONFIG_ROOT: ${{ github.workspace }}
|
NF_CONFIG_ROOT: ${{ github.workspace }}
|
||||||
NF_UPDATE_CACHIX_PUSH: '1'
|
NF_UPDATE_CACHIX_PUSH: '1'
|
||||||
NF_UPDATE_GIT_COMMIT: '1'
|
|
||||||
id: koishi
|
id: koishi
|
||||||
name: build system closure for koishi
|
name: build system closure for koishi
|
||||||
run: nix run .#nf-build-system -- nixosConfigurations.koishi.config.system.build.topLevel
|
run: nix run .#nf-build-system -- nixosConfigurations.koishi.config.system.build.topLevel
|
||||||
koishi NixOS
|
koishi NixOS
|
||||||
|
- id: ci-dirty
|
||||||
|
name: nix test dirty
|
||||||
|
uses: arcnmx/ci/actions/nix/run@v0.7
|
||||||
|
with:
|
||||||
|
attrs: ci.job.koishi.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.koishi.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.koishi.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.koishi.run.test
|
||||||
|
command: ci-build-cache
|
||||||
|
quiet: false
|
||||||
|
stdin: ${{ runner.temp }}/ci.build.cache
|
||||||
mai:
|
mai:
|
||||||
name: mai
|
name: nodes-mai
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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:
|
- env:
|
||||||
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
|
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
|
||||||
DISCORD_WEBHOOK_LINK: ${{ secrets.DISCORD_WEBHOOK_LINK }}
|
DISCORD_WEBHOOK_LINK: ${{ secrets.DISCORD_WEBHOOK_LINK }}
|
||||||
NF_CONFIG_ROOT: ${{ github.workspace }}
|
NF_CONFIG_ROOT: ${{ github.workspace }}
|
||||||
NF_UPDATE_CACHIX_PUSH: '1'
|
NF_UPDATE_CACHIX_PUSH: '1'
|
||||||
NF_UPDATE_GIT_COMMIT: '1'
|
|
||||||
id: mai
|
id: mai
|
||||||
name: build system closure for mai
|
name: build system closure for mai
|
||||||
run: nix run .#nf-build-system -- nixosConfigurations.mai.config.system.build.topLevel
|
run: nix run .#nf-build-system -- nixosConfigurations.mai.config.system.build.topLevel
|
||||||
mai NixOS
|
mai NixOS
|
||||||
|
- id: ci-dirty
|
||||||
|
name: nix test dirty
|
||||||
|
uses: arcnmx/ci/actions/nix/run@v0.7
|
||||||
|
with:
|
||||||
|
attrs: ci.job.mai.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.mai.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.mai.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.mai.run.test
|
||||||
|
command: ci-build-cache
|
||||||
|
quiet: false
|
||||||
|
stdin: ${{ runner.temp }}/ci.build.cache
|
||||||
mei:
|
mei:
|
||||||
name: mei
|
name: nodes-mei
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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:
|
- env:
|
||||||
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
|
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
|
||||||
DISCORD_WEBHOOK_LINK: ${{ secrets.DISCORD_WEBHOOK_LINK }}
|
DISCORD_WEBHOOK_LINK: ${{ secrets.DISCORD_WEBHOOK_LINK }}
|
||||||
NF_CONFIG_ROOT: ${{ github.workspace }}
|
NF_CONFIG_ROOT: ${{ github.workspace }}
|
||||||
NF_UPDATE_CACHIX_PUSH: '1'
|
NF_UPDATE_CACHIX_PUSH: '1'
|
||||||
NF_UPDATE_GIT_COMMIT: '1'
|
|
||||||
id: mei
|
id: mei
|
||||||
name: build system closure for mei
|
name: build system closure for mei
|
||||||
run: nix run .#nf-build-system -- nixosConfigurations.mei.config.system.build.topLevel
|
run: nix run .#nf-build-system -- nixosConfigurations.mei.config.system.build.topLevel
|
||||||
mei NixOS
|
mei NixOS
|
||||||
|
- id: ci-dirty
|
||||||
|
name: nix test dirty
|
||||||
|
uses: arcnmx/ci/actions/nix/run@v0.7
|
||||||
|
with:
|
||||||
|
attrs: ci.job.mei.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.mei.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.mei.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.mei.run.test
|
||||||
|
command: ci-build-cache
|
||||||
|
quiet: false
|
||||||
|
stdin: ${{ runner.temp }}/ci.build.cache
|
||||||
yukari:
|
yukari:
|
||||||
name: yukari
|
name: nodes-yukari
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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:
|
- env:
|
||||||
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
|
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
|
||||||
DISCORD_WEBHOOK_LINK: ${{ secrets.DISCORD_WEBHOOK_LINK }}
|
DISCORD_WEBHOOK_LINK: ${{ secrets.DISCORD_WEBHOOK_LINK }}
|
||||||
NF_CONFIG_ROOT: ${{ github.workspace }}
|
NF_CONFIG_ROOT: ${{ github.workspace }}
|
||||||
NF_UPDATE_CACHIX_PUSH: '1'
|
NF_UPDATE_CACHIX_PUSH: '1'
|
||||||
NF_UPDATE_GIT_COMMIT: '1'
|
|
||||||
id: yukari
|
id: yukari
|
||||||
name: build system closure for yukari
|
name: build system closure for yukari
|
||||||
run: nix run .#nf-build-system -- nixosConfigurations.yukari.config.system.build.topLevel
|
run: nix run .#nf-build-system -- nixosConfigurations.yukari.config.system.build.topLevel
|
||||||
yukari NixOS
|
yukari NixOS
|
||||||
|
- id: ci-dirty
|
||||||
|
name: nix test dirty
|
||||||
|
uses: arcnmx/ci/actions/nix/run@v0.7
|
||||||
|
with:
|
||||||
|
attrs: ci.job.yukari.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.yukari.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.yukari.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.yukari.run.test
|
||||||
|
command: ci-build-cache
|
||||||
|
quiet: false
|
||||||
|
stdin: ${{ runner.temp }}/ci.build.cache
|
||||||
name: nodes
|
name: nodes
|
||||||
'on':
|
'on':
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
|
||||||
11
ci/nodes.nix
11
ci/nodes.nix
|
|
@ -40,7 +40,6 @@ in {
|
||||||
env = {
|
env = {
|
||||||
CACHIX_SIGNING_KEY = "\${{ secrets.CACHIX_SIGNING_KEY }}";
|
CACHIX_SIGNING_KEY = "\${{ secrets.CACHIX_SIGNING_KEY }}";
|
||||||
DISCORD_WEBHOOK_LINK = "\${{ secrets.DISCORD_WEBHOOK_LINK }}";
|
DISCORD_WEBHOOK_LINK = "\${{ secrets.DISCORD_WEBHOOK_LINK }}";
|
||||||
NF_UPDATE_GIT_COMMIT = "1";
|
|
||||||
NF_UPDATE_CACHIX_PUSH = "1";
|
NF_UPDATE_CACHIX_PUSH = "1";
|
||||||
NF_CONFIG_ROOT = "\${{ github.workspace }}";
|
NF_CONFIG_ROOT = "\${{ github.workspace }}";
|
||||||
};
|
};
|
||||||
|
|
@ -51,11 +50,13 @@ in {
|
||||||
in nixosBuildJobs;
|
in nixosBuildJobs;
|
||||||
};
|
};
|
||||||
|
|
||||||
jobs = {
|
jobs = let
|
||||||
flake-update = { ... }: {
|
genericNixosBuildJob = name: system: nameValuePair "${name}" ({ ... }: {
|
||||||
imports = [ ./packages.nix ];
|
imports = [ ./packages.nix ];
|
||||||
};
|
});
|
||||||
};
|
enabledNixosSystems = filterAttrs (_: system: system.config.ci.enable) channels.nixfiles.systems;
|
||||||
|
nixosBuildJobs = mapAttrs' genericNixosBuildJob enabledNixosSystems;
|
||||||
|
in nixosBuildJobs;
|
||||||
|
|
||||||
ci.gh-actions.checkoutOptions = {
|
ci.gh-actions.checkoutOptions = {
|
||||||
fetch-depth = 0;
|
fetch-depth = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue