Nix CI: use DetSys' install & cache actions

This commit is contained in:
Mihai Fufezan 2023-09-13 19:06:49 +03:00
parent 2536630049
commit f8008e4b3b
No known key found for this signature in database
3 changed files with 4 additions and 27 deletions

View file

@ -20,15 +20,8 @@ jobs:
with:
ref: ${{ github.ref }}
- name: Install Nix
uses: cachix/install-nix-action@v22
with:
install_url: https://nixos.org/nix/install
extra_nix_config: |
auto-optimise-store = true
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
experimental-features = nix-command flakes
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@v12
with:
name: hyprland

View file

@ -14,15 +14,7 @@ jobs:
with:
token: ${{ secrets.PAT }}
- name: Install nix
uses: cachix/install-nix-action@v22
with:
install_url: https://nixos.org/nix/install
extra_nix_config: |
auto-optimise-store = true
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
experimental-features = nix-command flakes
- uses: DeterminateSystems/nix-installer-action@main
- name: Update inputs
run: nix/update-inputs.sh

View file

@ -16,15 +16,7 @@ jobs:
with:
token: ${{ secrets.PAT }}
- name: Install nix
uses: cachix/install-nix-action@v22
with:
install_url: https://nixos.org/nix/install
extra_nix_config: |
auto-optimise-store = true
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
experimental-features = nix-command flakes
- uses: DeterminateSystems/nix-installer-action@main
- name: Update lockfile
run: nix/update-wlroots.sh