update channels CI #80
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Guix channel | |
on: | |
push: | |
branches: [ "main" ] | |
paths-ignore: | |
- README.md | |
- LICENSE | |
- '.img/**' | |
- 'scripts/**' | |
- 'etc/**' | |
pull_request: | |
branches: [ "main" ] | |
paths-ignore: | |
- README.md | |
- LICENSE | |
- '.img/**' | |
- 'scripts/**' | |
- 'etc/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- 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- | |
- name: Install Guix | |
id: install-guix | |
uses: PromyLOPh/guix-install-action@v1 | |
with: | |
channels: |- | |
(list | |
(channel | |
(name 'ocui) | |
(url "https://github.com/fishinthecalculator/ocui") | |
(branch "main") | |
(introduction | |
(make-channel-introduction | |
"10ed759852825149eb4b08c9b75777111a92048e" | |
(openpgp-fingerprint | |
"97A2 CB8F B066 F894 9928 CF80 DE9B E0AC E824 6F08")))) | |
%default-guix-channel) | |
- name: Build ocui.git | |
run: guix build -L "${PWD}/.guix/modules" ocui.git | |
- name: Lint ocui.git | |
run: guix lint -L "${PWD}/.guix/modules" ocui.git |