Skip to content

Commit

Permalink
CI: use DetSys' install & cache actions
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Sep 16, 2023
1 parent 8058e8b commit f4214f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 21 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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: nix-gaming
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/update-flake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,8 @@ jobs:
- uses: actions/checkout@v3
with:
token: ${{ secrets.PAT }}
- 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: cachix/cachix-action@v12
with:
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,8 @@ jobs:
- uses: actions/checkout@v3
with:
token: ${{ secrets.PAT }}
- 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: cachix/cachix-action@v12
with:
Expand Down

0 comments on commit f4214f7

Please sign in to comment.