Skip to content

Commit 24df342

Browse files
committed
Add GitHub action to build the environment with Guix.
1 parent 93696cd commit 24df342

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: build
2+
on: [ push ]
3+
jobs:
4+
build:
5+
name: Run the pipeline
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: Instantiate specific Guix revision
21+
run: guix time-machine -C sources/channels.scm -- describe
22+
- name: Check
23+
run: guix time-machine -C sources/channels.scm -- describe
24+
- name: Build environment
25+
working-directory: sources
26+
run: guix time-machine -C channels.scm -- shell -C -m manifest.scm -- python3 --version
27+
- name: Rebuild environment for checking
28+
working-directory: sources
29+
run: guix time-machine -C channels.scm -- shell -C -m manifest.scm -- python3 --version

0 commit comments

Comments
 (0)