Skip to content

Commit 23fe0e9

Browse files
committed
try cachix
1 parent f3e1261 commit 23fe0e9

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/nix.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: "build and cache w/cachix"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build-and-cache:
13+
if: github.event.pull_request.draft == false
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 200
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- uses: cachix/install-nix-action@v27
21+
with:
22+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
23+
24+
# TODO: does this add add anything if we're using cachix?
25+
- name: Run the Magic Nix Cache
26+
uses: DeterminateSystems/magic-nix-cache-action@main
27+
28+
- uses: cachix/cachix-action@v15
29+
with:
30+
name: justbuchanan-oasis
31+
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
32+
33+
- name: Check flake
34+
run: nix flake check
35+
36+
- name: Construct nix env
37+
run: nix develop -c echo hi
38+
39+
- name: build oasis everything
40+
run: nix develop -c make

0 commit comments

Comments
 (0)