Use harmonia instead of attic for binary cache
Some checks failed
CI / Check, build and cache Nix flake (push) Failing after 46s

This commit is contained in:
2024-07-20 16:46:10 +01:00
parent 1ea172e690
commit 380ce0bf9e
7 changed files with 100 additions and 17 deletions

View File

@@ -23,19 +23,18 @@ jobs:
extra-substituters = https://nix-cache.nul.ie/main
extra-trusted-public-keys = main:mMChkG8LwXrFirVfudqjSHasK1jV31OVElYD3eImYl8=
- name: Set up attic
run: |
nix run .#nixpkgs.mine.x86_64-linux.attic-client -- \
login --set-default colony https://nix-cache.nul.ie "${{ secrets.NIX_CACHE_TOKEN }}"
- name: Check flake
run: nix flake check
# - name: Check flake
# run: nix flake check --no-build
- name: Build the world
id: build
run: |
path=$(nix build --no-link .#ci.x86_64-linux --json | jq -r .[0].outputs.out)
# path=$(nix build --no-link .#ci.x86_64-linux --json | jq -r .[0].outputs.out)
# nix build --no-link .#windowtolayer --json
path=$(nix build --no-link .#windowtolayer --json | jq -r .[0].outputs.out)
echo "path=$path" >> "$GITHUB_OUTPUT"
# cat "$GITHUB_OUTPUT"
- name: Push to cache
run: |
nix run .#nixpkgs.mine.x86_64-linux.attic-client -- \
push main ${{ steps.build.outputs.path }}
ci/push-to-cache.sh "${{ steps.build.outputs.path }}"