ci: enable cachix after restoring the cache
Signed-off-by: morguldir <morguldir@protonmail.com>
This commit is contained in:
parent
a41e63b40e
commit
80b72637e2
2 changed files with 18 additions and 18 deletions
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
|
@ -87,12 +87,6 @@ jobs:
|
||||||
|
|
||||||
- uses: nixbuild/nix-quick-install-action@v28
|
- uses: nixbuild/nix-quick-install-action@v28
|
||||||
|
|
||||||
- name: Enable Cachix binary cache
|
|
||||||
run: |
|
|
||||||
nix profile install nixpkgs#cachix
|
|
||||||
cachix use crane
|
|
||||||
cachix use nix-community
|
|
||||||
|
|
||||||
- name: Restore and cache Nix store
|
- name: Restore and cache Nix store
|
||||||
uses: nix-community/cache-nix-action@v5.1.0
|
uses: nix-community/cache-nix-action@v5.1.0
|
||||||
with:
|
with:
|
||||||
|
@ -114,6 +108,12 @@ jobs:
|
||||||
# always save the cache
|
# always save the cache
|
||||||
save-always: true
|
save-always: true
|
||||||
|
|
||||||
|
- name: Enable Cachix binary cache
|
||||||
|
run: |
|
||||||
|
nix profile install nixpkgs#cachix
|
||||||
|
cachix use crane
|
||||||
|
cachix use nix-community
|
||||||
|
|
||||||
- name: Apply Nix binary cache configuration
|
- name: Apply Nix binary cache configuration
|
||||||
run: |
|
run: |
|
||||||
sudo tee -a "${XDG_CONFIG_HOME:-$HOME/.config}/nix/nix.conf" > /dev/null <<EOF
|
sudo tee -a "${XDG_CONFIG_HOME:-$HOME/.config}/nix/nix.conf" > /dev/null <<EOF
|
||||||
|
@ -224,12 +224,6 @@ jobs:
|
||||||
|
|
||||||
- uses: nixbuild/nix-quick-install-action@v28
|
- uses: nixbuild/nix-quick-install-action@v28
|
||||||
|
|
||||||
- name: Enable Cachix binary cache
|
|
||||||
run: |
|
|
||||||
nix profile install nixpkgs#cachix
|
|
||||||
cachix use crane
|
|
||||||
cachix use nix-community
|
|
||||||
|
|
||||||
- name: Restore and cache Nix store
|
- name: Restore and cache Nix store
|
||||||
uses: nix-community/cache-nix-action@v5.1.0
|
uses: nix-community/cache-nix-action@v5.1.0
|
||||||
with:
|
with:
|
||||||
|
@ -251,6 +245,12 @@ jobs:
|
||||||
# always save the cache
|
# always save the cache
|
||||||
save-always: true
|
save-always: true
|
||||||
|
|
||||||
|
- name: Enable Cachix binary cache
|
||||||
|
run: |
|
||||||
|
nix profile install nixpkgs#cachix
|
||||||
|
cachix use crane
|
||||||
|
cachix use nix-community
|
||||||
|
|
||||||
- name: Apply Nix binary cache configuration
|
- name: Apply Nix binary cache configuration
|
||||||
run: |
|
run: |
|
||||||
sudo tee -a "${XDG_CONFIG_HOME:-$HOME/.config}/nix/nix.conf" > /dev/null <<EOF
|
sudo tee -a "${XDG_CONFIG_HOME:-$HOME/.config}/nix/nix.conf" > /dev/null <<EOF
|
||||||
|
|
12
.github/workflows/documentation.yml
vendored
12
.github/workflows/documentation.yml
vendored
|
@ -59,12 +59,6 @@ jobs:
|
||||||
|
|
||||||
- uses: nixbuild/nix-quick-install-action@v28
|
- uses: nixbuild/nix-quick-install-action@v28
|
||||||
|
|
||||||
- name: Enable Cachix binary cache
|
|
||||||
run: |
|
|
||||||
nix profile install nixpkgs#cachix
|
|
||||||
cachix use crane
|
|
||||||
cachix use nix-community
|
|
||||||
|
|
||||||
- name: Restore and cache Nix store
|
- name: Restore and cache Nix store
|
||||||
uses: nix-community/cache-nix-action@v5.1.0
|
uses: nix-community/cache-nix-action@v5.1.0
|
||||||
with:
|
with:
|
||||||
|
@ -86,6 +80,12 @@ jobs:
|
||||||
# always save the cache
|
# always save the cache
|
||||||
save-always: true
|
save-always: true
|
||||||
|
|
||||||
|
- name: Enable Cachix binary cache
|
||||||
|
run: |
|
||||||
|
nix profile install nixpkgs#cachix
|
||||||
|
cachix use crane
|
||||||
|
cachix use nix-community
|
||||||
|
|
||||||
- name: Apply Nix binary cache configuration
|
- name: Apply Nix binary cache configuration
|
||||||
run: |
|
run: |
|
||||||
sudo tee -a "${XDG_CONFIG_HOME:-$HOME/.config}/nix/nix.conf" > /dev/null <<EOF
|
sudo tee -a "${XDG_CONFIG_HOME:-$HOME/.config}/nix/nix.conf" > /dev/null <<EOF
|
||||||
|
|
Loading…
Add table
Reference in a new issue