Skip to content

Commit

Permalink
Determine build if by cache status
Browse files Browse the repository at this point in the history
  • Loading branch information
simonswine committed Nov 8, 2024
1 parent f622176 commit 13aceca
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,25 @@ jobs:
- uses: actions/checkout@v4
- run: nix build '.#nixosConfigurations.hcloud-kubernetes.config.system.build.toplevel'
prepare-arm64-runner:
#if: false
runs-on: ubuntu-24.04
steps:
- uses: simonswine/hetzner-github-runner@HEAD
- uses: cachix/install-nix-action@v30
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v15
with:
github-api-key: ${{ secrets.GH_API_KEY_RUNNER }}
hetzner-api-key: ${{ secrets.HETZNER_API_KEY }}
hetzner-instance-type: cax21
name: packer-kubernetes-hcloud
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- uses: actions/checkout@v4
- run: nix-eval-jobs --gc-roots-dir gcroot --check-cache-status --flake '.#nixosConfigurations.install-image-orangepi5plus.config.system.build.toplevel'
# - uses: simonswine/hetzner-github-runner@HEAD
# with:
# github-api-key: ${{ secrets.GH_API_KEY_RUNNER }}
# hetzner-api-key: ${{ secrets.HETZNER_API_KEY }}
# hetzner-instance-type: cax21
build-arm64:
if: false
runs-on: self-hosted
needs: prepare-arm64-runner
steps:
Expand Down

0 comments on commit 13aceca

Please sign in to comment.