Skip to content

Commit

Permalink
use magic-nix-cache-action
Browse files Browse the repository at this point in the history
  • Loading branch information
steveej committed Sep 5, 2024
1 parent e43d334 commit fa87397
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build-hds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,23 @@ jobs:
- { system: x86_64-linux, runner: "ubuntu-latest", native: true }
- { system: aarch64-linux, runner: "ubuntu-latest", native: false }
- { system: aarch64-darwin, runner: "macos-latest", native: true }

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4
with:
path: "hds-releases"

- name: "install nix"
uses: "cachix/install-nix-action@v22"
- uses: DeterminateSystems/nix-installer-action@main
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
github_token: ${{ secrets.GITHUB_TOKEN }}
extra-conf: |
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.holo.host-1:lNXIXtJgS9Iuw4Cu6X0HINLu9sTfcjEntnrgwMQIMcE= cache.holo.host-2:ZJCkX3AUYZ8soxTLfTb60g+F3MkWD7hkH9y8CgqwhDQ=
substituters = https://cache.holo.host https://cache.nixos.org/
- uses: DeterminateSystems/magic-nix-cache-action@main

- name: "download holo-nixpkgs tag"
run: |
Expand Down

0 comments on commit fa87397

Please sign in to comment.