Skip to content

Commit 10db26a

Browse files
authored
Update to use our new nix action (#128)
* Update to use our new nix action * Update th edocs / actions to stop using magic-nix-cache-action
1 parent aa95642 commit 10db26a

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515
- name: Install Nix
16-
uses: DeterminateSystems/nix-installer-action@main
17-
- uses: DeterminateSystems/magic-nix-cache-action@main
16+
uses: DeterminateSystems/determinate-nix-action@main
17+
- uses: DeterminateSystems/flakehub-cache-action@main
1818
- name: Check shell scripts
1919
run: |
2020
nix develop --command shellcheck ./.github/workflows/cache-test.sh
21-
- uses: DeterminateSystems/nix-installer-action@main
21+
- uses: DeterminateSystems/determinate-nix-action@main
2222
- name: Install pnpm dependencies
2323
run: nix develop --command pnpm install
2424
- name: Check formatting
@@ -60,9 +60,8 @@ jobs:
6060
steps:
6161
- uses: actions/checkout@v4
6262
- name: Install Nix
63-
uses: DeterminateSystems/nix-installer-action@main
63+
uses: DeterminateSystems/determinate-nix-action@main
6464
with:
65-
flakehub: true
6665
extra-conf: |
6766
narinfo-cache-negative-ttl = 0
6867
trusted-users = root

.github/workflows/flakehub-cache.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ jobs:
2323
runner: "ubuntu-22.04"
2424
steps:
2525
- uses: actions/checkout@v4
26-
- uses: DeterminateSystems/nix-installer-action@main
27-
- uses: DeterminateSystems/magic-nix-cache-action@main
28-
with:
29-
use-flakehub: true
26+
- uses: DeterminateSystems/determinate-nix-action@main
27+
- uses: DeterminateSystems/flakehub-cache-action@main
3028
- name: Build dev shell for ${{ matrix.systems.nix-system }} on ${{ matrix.systems.runner }}
3129
run: |
3230
nix build .#devShells.${{ matrix.systems.nix-system }}.default

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Use Magic Nix Cache, a totally free and zero-configuration binary cache for Nix
1313
Add our [GitHub Action][action] after installing Nix, in your workflow, like this:
1414

1515
```yaml
16-
- uses: DeterminateSystems/magic-nix-cache-action@main
16+
- uses: DeterminateSystems/flakehub-cache-action@main
1717
```
1818
1919
See [Usage](#usage) for a detailed example.
@@ -53,8 +53,8 @@ jobs:
5353
contents: "read"
5454
steps:
5555
- uses: actions/checkout@v4
56-
- uses: DeterminateSystems/nix-installer-action@main
57-
- uses: DeterminateSystems/magic-nix-cache-action@main
56+
- uses: DeterminateSystems/determinate-nix-action@v3
57+
- uses: DeterminateSystems/flakehub-cache-action@main
5858
- uses: DeterminateSystems/flake-checker-action@main
5959
- name: Run `nix build`
6060
run: nix build .
@@ -87,7 +87,7 @@ When you configure an upstream cache for the Magic Nix Cache, any store paths fe
8787
The default is `https://cache.nixos.org` but you can set a different upstream:
8888

8989
```yaml
90-
- uses: DeterminateSystems/magic-nix-cache-action@main
90+
- uses: DeterminateSystems/flakehub-cache-action@main
9191
with:
9292
upstream-cache: https://my-binary-cache.com
9393
```

0 commit comments

Comments
 (0)