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: with:
ref: ${{ github.ref }} ref: ${{ github.ref }}
- name: Install Nix - uses: DeterminateSystems/nix-installer-action@main
uses: cachix/install-nix-action@v22 - uses: DeterminateSystems/magic-nix-cache-action@main
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: cachix/cachix-action@v12 - uses: cachix/cachix-action@v12
with: with:
name: hyprland name: hyprland

View File

@ -14,15 +14,7 @@ jobs:
with: with:
token: ${{ secrets.PAT }} token: ${{ secrets.PAT }}
- name: Install nix - uses: DeterminateSystems/nix-installer-action@main
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
- name: Update inputs - name: Update inputs
run: nix/update-inputs.sh run: nix/update-inputs.sh

View File

@ -16,15 +16,7 @@ jobs:
with: with:
token: ${{ secrets.PAT }} token: ${{ secrets.PAT }}
- name: Install nix - uses: DeterminateSystems/nix-installer-action@main
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
- name: Update lockfile - name: Update lockfile
run: nix/update-wlroots.sh run: nix/update-wlroots.sh