chore: Just evaluate instead of building artificats for CI
This commit is contained in:
committed by
Hunter Halloran
parent
a23ec91c9c
commit
a06525f6fa
@@ -4,8 +4,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- master
|
pull_request_review:
|
||||||
pull_request:
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -15,6 +15,7 @@ jobs:
|
|||||||
flake-check:
|
flake-check:
|
||||||
name: Flake Check
|
name: Flake Check
|
||||||
runs-on: [self-hosted, nix-builder]
|
runs-on: [self-hosted, nix-builder]
|
||||||
|
needs: [format-check]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -59,8 +60,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 +74,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