fix #9
Workflow file for this run
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: build | |
on: | |
push: | |
paths-ignore: | |
- 'README.org' | |
- '.guix-authorizations' | |
- '.guix-channel' | |
pull_request: | |
schedule: | |
# weekly builds, making sure everything still works with guix-proper | |
- cron: '39 3 * * 0' | |
jobs: | |
build: | |
name: Build package | |
runs-on: ubuntu-latest | |
strategy: | |
# building independent packages, don’t abort entire build if one fails | |
fail-fast: false | |
matrix: | |
package: | |
- rust-bin | |
steps: | |
- name: Guix cache | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/guix | |
# use a key that (almost) never matches | |
key: guix-cache-${{ github.sha }} | |
restore-keys: | | |
guix-cache- | |
- name: Install Guix | |
uses: PromyLOPh/guix-install-action@v1 | |
with: | |
pullAfterInstall: false | |
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"))))) | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Lint package | |
run: | | |
export GUILE_LOAD_PATH="$(pwd):$HOME/.config/guix/current/share/guile/site/3.0" | |
guix lint -L . ${{ matrix.package }} |& sed -nre 's#(.*):([0-9]+):([0-9]+): (.*)$#::warning file=\1,line=\2,col=\3::\4#gp' | |
- name: Build package | |
run: | | |
export GUILE_LOAD_PATH="$(pwd):$HOME/.config/guix/current/share/guile/site/3.0" | |
guix build -L . ${{ matrix.package }} |