just evaluate instead of building artificats for CI
All checks were successful
CI / Flake Check (push) Successful in 1m15s
CI / Format Check (push) Successful in 1s
CI / Evaluate Key Configurations (nix-builder) (push) Successful in 9s
CI / Evaluate Key Configurations (nix-desktop1) (push) Successful in 11s
CI / Evaluate Key Configurations (nix-laptop1) (push) Successful in 8s
CI / Evaluate Artifacts (installer-iso-nix-laptop1) (push) Successful in 16s
CI / Evaluate Artifacts (lxc-nix-builder) (push) Successful in 11s
All checks were successful
CI / Flake Check (push) Successful in 1m15s
CI / Format Check (push) Successful in 1s
CI / Evaluate Key Configurations (nix-builder) (push) Successful in 9s
CI / Evaluate Key Configurations (nix-desktop1) (push) Successful in 11s
CI / Evaluate Key Configurations (nix-laptop1) (push) Successful in 8s
CI / Evaluate Artifacts (installer-iso-nix-laptop1) (push) Successful in 16s
CI / Evaluate Artifacts (lxc-nix-builder) (push) Successful in 11s
This commit is contained in:
@@ -59,8 +59,8 @@ jobs:
|
|||||||
nix eval .#nixosConfigurations.${{ matrix.config }}.config.system.build.toplevel.drvPath \
|
nix eval .#nixosConfigurations.${{ matrix.config }}.config.system.build.toplevel.drvPath \
|
||||||
--show-trace
|
--show-trace
|
||||||
|
|
||||||
build-artifacts:
|
eval-artifacts:
|
||||||
name: Build Artifacts
|
name: Evaluate Artifacts
|
||||||
runs-on: [self-hosted, nix-builder]
|
runs-on: [self-hosted, nix-builder]
|
||||||
needs: [flake-check, format-check]
|
needs: [flake-check, format-check]
|
||||||
strategy:
|
strategy:
|
||||||
@@ -73,18 +73,8 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build artifact
|
- name: Evaluate artifact
|
||||||
run: |
|
run: |
|
||||||
echo "Building artifact ${{ matrix.artifact }}"
|
echo "Evaluating artifact ${{ matrix.artifact }}"
|
||||||
nix build .#${{ matrix.artifact }} \
|
nix eval .#${{ matrix.artifact }}.drvPath \
|
||||||
--print-build-logs \
|
|
||||||
--show-trace
|
--show-trace
|
||||||
|
|
||||||
- name: Show build result
|
|
||||||
run: |
|
|
||||||
if [ -L result ]; then
|
|
||||||
ls -lh result/
|
|
||||||
if [ -d result/iso ]; then
|
|
||||||
ls -lh result/iso/
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|||||||
@@ -108,10 +108,13 @@
|
|||||||
url = "https://git.factory.uga.edu";
|
url = "https://git.factory.uga.edu";
|
||||||
# Token file must be created manually at this path with a Gitea runner token
|
# Token file must be created manually at this path with a Gitea runner token
|
||||||
# Generate in repository settings: Settings > Actions > Runners > Create new Runner
|
# Generate in repository settings: Settings > Actions > Runners > Create new Runner
|
||||||
# echo "YOUR_TOKEN_HERE" | sudo tee /var/lib/gitea-runner-token > /dev/null
|
# echo "TOKEN=YOUR_TOKEN_HERE" | sudo tee /var/lib/gitea-runner-token > /dev/null
|
||||||
tokenFile = "/var/lib/gitea-runner-token";
|
tokenFile = "/var/lib/gitea-runner-token";
|
||||||
# Labels to identify this runner in workflows
|
# Labels to identify this runner in workflows
|
||||||
extraLabels = [ "nix-builder" ];
|
extraLabels = [
|
||||||
|
"self-hosted"
|
||||||
|
"nix-builder"
|
||||||
|
];
|
||||||
# Runner service name
|
# Runner service name
|
||||||
name = "athenix";
|
name = "athenix";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -31,6 +31,11 @@ mkIf builderCfg.giteaRunner.enable {
|
|||||||
# Give the service more time to stop cleanly
|
# Give the service more time to stop cleanly
|
||||||
TimeoutStopSec = mkForce 60;
|
TimeoutStopSec = mkForce 60;
|
||||||
|
|
||||||
|
# Add Node.js and other tools to PATH for GitHub Actions compatibility
|
||||||
|
Environment = [
|
||||||
|
"PATH=${pkgs.nodejs}/bin:${pkgs.bash}/bin:${pkgs.coreutils}/bin:${pkgs.git}/bin:${pkgs.nix}/bin:/run/current-system/sw/bin"
|
||||||
|
];
|
||||||
|
|
||||||
# Disable all namespace isolation features that don't work in LXC containers
|
# Disable all namespace isolation features that don't work in LXC containers
|
||||||
PrivateMounts = mkForce false;
|
PrivateMounts = mkForce false;
|
||||||
MountAPIVFS = mkForce false;
|
MountAPIVFS = mkForce false;
|
||||||
|
|||||||
Reference in New Issue
Block a user