File tree 1 file changed +0
-30
lines changed
1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -72,40 +72,10 @@ jobs:
72
72
Once you commit and push to your GitHub repository,
73
73
you should see status checks appearing on commits and PRs.
74
74
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
-
104
75
## Next steps
105
76
106
77
- See [GitHub Actions workflow syntax](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions)
107
78
- To quickly setup a Nix project read through
108
79
[Getting started Nix template](https://github.com/nix-dot-dev/getting-started-nix-template).
109
80
110
- [magic-nix-cache] : https://github.com/DeterminateSystems/magic-nix-cache-action/
111
81
[github-actions-caching-limits]: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows
You can’t perform that action at this time.
0 commit comments