Skip to content

add ci

add ci #1

Workflow file for this run

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
- name: Checkout
uses: actions/checkout@v2
- name: Lint package
run: |
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: guix build -L . ${{ matrix.package }}