chore: Update ci
This commit is contained in:
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@@ -38,9 +38,10 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
build-configs:
|
eval-configs:
|
||||||
name: Build Key Configurations
|
name: Evaluate Key Configurations
|
||||||
runs-on: [self-hosted, nix-builder]
|
runs-on: [self-hosted, nix-builder]
|
||||||
|
needs: [flake-check, format-check]
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
config:
|
config:
|
||||||
@@ -52,16 +53,16 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build configuration
|
- name: Evaluate configuration
|
||||||
run: |
|
run: |
|
||||||
echo "Building configuration for ${{ matrix.config }}"
|
echo "Evaluating configuration for ${{ matrix.config }}"
|
||||||
nix build .#nixosConfigurations.${{ matrix.config }}.config.system.build.toplevel \
|
nix eval .#nixosConfigurations.${{ matrix.config }}.config.system.build.toplevel.drvPath \
|
||||||
--print-build-logs \
|
|
||||||
--show-trace
|
--show-trace
|
||||||
|
|
||||||
build-artifacts:
|
build-artifacts:
|
||||||
name: Build Artifacts
|
name: Build Artifacts
|
||||||
runs-on: [self-hosted, nix-builder]
|
runs-on: [self-hosted, nix-builder]
|
||||||
|
needs: [flake-check, format-check]
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
artifact:
|
artifact:
|
||||||
|
|||||||
@@ -73,7 +73,12 @@ let
|
|||||||
# Each wrapper checks if the user is enabled before applying the module content
|
# Each wrapper checks if the user is enabled before applying the module content
|
||||||
userNixosModules = lib.mapAttrsToList (
|
userNixosModules = lib.mapAttrsToList (
|
||||||
name: modulePath:
|
name: modulePath:
|
||||||
{ config, lib, pkgs, ... }@args:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}@args:
|
||||||
let
|
let
|
||||||
# Import the user's nixos module - it returns a function or attrset
|
# Import the user's nixos module - it returns a function or attrset
|
||||||
importedModuleFunc = import modulePath { inherit inputs; };
|
importedModuleFunc = import modulePath { inherit inputs; };
|
||||||
|
|||||||
@@ -97,7 +97,9 @@ mkIf builderCfg.githubRunner.enable {
|
|||||||
cd "$runnerDir"
|
cd "$runnerDir"
|
||||||
|
|
||||||
# Configure the runner, optionally replacing existing registration
|
# Configure the runner, optionally replacing existing registration
|
||||||
if [ ! -f ".runner" ] || [ "${if builderCfg.githubRunner.replace then "true" else "false"}" = "true" ]; then
|
if [ ! -f ".runner" ] || [ "${
|
||||||
|
if builderCfg.githubRunner.replace then "true" else "false"
|
||||||
|
}" = "true" ]; then
|
||||||
echo "Configuring GitHub Actions runner..."
|
echo "Configuring GitHub Actions runner..."
|
||||||
${runnerPkg}/bin/Runner.Listener configure \
|
${runnerPkg}/bin/Runner.Listener configure \
|
||||||
--unattended \
|
--unattended \
|
||||||
|
|||||||
Reference in New Issue
Block a user