Skip to content

Commit a1678dc

Browse files
committed
Add GitHub action to build the environment with Guix.
1 parent 2f5ef77 commit a1678dc

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: build
2+
on: [ push ]
3+
jobs:
4+
build:
5+
name: Build environment
6+
runs-on: ubuntu-22.04
7+
steps:
8+
- name: Guix cache
9+
uses: actions/cache@v2
10+
with:
11+
path: ~/.cache/guix
12+
# use a key that (almost) never matches
13+
key: guix-cache-${{ github.sha }}
14+
restore-keys: |
15+
guix-cache-
16+
- name: Install Guix
17+
uses: PromyLOPh/guix-install-action@v1
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
- name: Build environment
21+
run: guix time-machine -C channels.scm -- shell -m manifest.scm -- describe

0 commit comments

Comments
 (0)