Skip to content

Commit 599ec2d

Browse files
committed
github: add a cachix action
1 parent ecc2a89 commit 599ec2d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/cachix.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Cachix
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-20.04
11+
steps:
12+
# Clone repo
13+
- uses: actions/checkout@v3
14+
with:
15+
submodules: recursive
16+
17+
- uses: handelsblattmediagroup/lix-quick-install-action@v3.0.4
18+
19+
- name: Cachix setup
20+
uses: cachix/cachix-action@v12
21+
with:
22+
name: somasis
23+
# you need to create the secret named CACHIX_AUTH_TOKEN
24+
# with the personal access token created.
25+
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
26+
skipPush: true
27+
28+
# Build a configuration.nix file that doesn't use flakes
29+
# and push to cachix.
30+
- name: Build ilo
31+
run: nix-build . -A nixosConfigurations.ilo.config.system.build.toplevel --keep-going
32+
33+
- name: Cache built derivation
34+
run: realpath result | cachix push somasis

0 commit comments

Comments
 (0)