-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (47 loc) · 1.77 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: test
on: [push]
jobs:
build-with-channels:
name: Test as Guix channel
runs-on: ubuntu-latest
steps:
- name: Guix cache
uses: actions/cache@v3
with:
path: ~/.cache/guix
# use a key that (almost) never matches
key: guix-cache-${{ github.sha }}
restore-keys: |
guix-cache-
# Cannot use a cache for /gnu/store, since restore fails
- name: Install Guix
id: install-guix
uses: PromyLOPh/guix-install-action@v1
with:
channels: |-
(list (channel
(name 'guix)
(url "https://github.com/declantsien/guix")
(branch "master")
(commit
"da9f509b0300f1b6b979c68a52d8669f9bcb89a7")
(introduction
(make-channel-introduction
"9edb3f66fd807b096b48283debdcddccfea34bad"
(openpgp-fingerprint
"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA"))))
(channel
(name 'rustup)
(url "https://github.com/declantsien/guix-rustup")
(branch "all")
(introduction
(make-channel-introduction
"d95cbf84dc68f5e7a0fc1e54bc582189e0e5079b"
(openpgp-fingerprint
"F695 F39E C625 E081 33B5 759F 0FC6 8703 75EF E2F5")))))
- name: Build
run: guix build rust-bin
- name: Build nightly
run: guix build -e '((@@ (rustup build toolchain) rustup) "nightly-2024-05-12")'
- name: Build nightly
run: guix build -e '((@@ (rustup build toolchain) rustup) "nightly-2024-05-13")'