ci: Add example from magic

https://github.com/DeterminateSystems/magic-nix-cache-action#usage
This commit is contained in:
Edmund Miller authored and Wez Furlong committed 2024-01-21 08:32:31 -07:00
1 parent aef7ebff5e
commit 41ec44a7f9
1 file changed
+29
+29
View File
@@ -0,0 +1,29 @@
name: Nix
on:
pull_request:
branches:
- main
paths:
- '**/*.rs'
- '.github/workflows/nix.yml'
- 'nix/**'
push:
branches:
- main
paths:
- '**/*.rs'
- '.github/workflows/nix.yml'
- 'nix/**'
jobs:
lints:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
- name: Run `nix build`
run: nix build .