Skip to content

Commit e779898

Browse files
authored
Remove Magic Nix Cache Action from continuous integration guide (#1118)
1 parent 051b34d commit e779898

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

source/guides/recipes/continuous-integration-github-actions.md

-30
Original file line numberDiff line numberDiff line change
@@ -72,40 +72,10 @@ jobs:
7272
Once you commit and push to your GitHub repository,
7373
you should see status checks appearing on commits and PRs.
7474
75-
## Caching builds using GitHub Actions Cache
76-
77-
A quick and easy way to speed up CI on any GitHub repository is to use the [Magic Nix Cache][magic-nix-cache].
78-
The Magic Nix Cache doesn't require any configuration, secrets, or credentials.
79-
This means the caching benefits automatically work for anyone who forks the repository.
80-
81-
One downside to the Magic Nix Cache is it only works inside GitHub Actions.
82-
For more details, check out [the readme][magic-nix-cache] and the [limits of GitHub Actions caching][github-actions-caching-limits].
83-
84-
Create `.github/workflows/test.yml` with:
85-
86-
```yaml
87-
name: "Test"
88-
on:
89-
pull_request:
90-
push:
91-
jobs:
92-
tests:
93-
runs-on: ubuntu-latest
94-
steps:
95-
- uses: actions/checkout@v4
96-
- uses: cachix/install-nix-action@v25
97-
with:
98-
nix_path: nixpkgs=channel:nixos-unstable
99-
- uses: DeterminateSystems/magic-nix-cache-action@v2
100-
- run: nix-build
101-
- run: nix-shell --run "echo OK"
102-
```
103-
10475
## Next steps
10576
10677
- See [GitHub Actions workflow syntax](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions)
10778
- To quickly setup a Nix project read through
10879
[Getting started Nix template](https://github.com/nix-dot-dev/getting-started-nix-template).
10980
110-
[magic-nix-cache]: https://github.com/DeterminateSystems/magic-nix-cache-action/
11181
[github-actions-caching-limits]: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows

0 commit comments

Comments
 (0)