Skip to content

Commit 56fd87a

Browse files
ci: update to determinate systems
1 parent 9a20969 commit 56fd87a

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/main.yaml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,18 @@ on:
55
push:
66
branches: [main]
77
env:
8-
CI_NIX_STORE: ~/nix
98
CI_NIX_FLAKE: .#default
109
jobs:
1110
lint:
1211
runs-on: ubuntu-latest
1312
steps:
14-
- name: Setup Nix
15-
uses: cachix/install-nix-action@v26
1613
- name: Checkout
1714
uses: actions/checkout@v4
15+
- name: Setup Nix
16+
uses: DeterminateSystems/nix-installer-action@main
1817
- name: Cache Nix
19-
uses: actions/cache@v4
20-
with:
21-
path: ${{ env.CI_NIX_STORE }}
22-
key: ${{ runner.os }}-nix-${{ hashFiles('flake.nix', 'flake.lock') }}
18+
uses: DeterminateSystems/magic-nix-cache-action@main
2319
- name: Lint
2420
run: |
25-
nix --store ${{ env.CI_NIX_STORE }} \
26-
develop ${{ env.CI_NIX_FLAKE }} --command \
21+
nix develop ${{ env.CI_NIX_FLAKE }} --command \
2722
editorconfig-checker && echo "ok"

0 commit comments

Comments
 (0)