Skip to content

Commit

Permalink
Nix CI: use DetSys' install & cache actions
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Sep 14, 2023
1 parent 2536630 commit f8008e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 27 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/nix-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/nix-update-inputs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/nix-update-wlroots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f8008e4

Please sign in to comment.