36 lines
789 B
YAML
36 lines
789 B
YAML
name: Build
|
|
on:
|
|
pull_request:
|
|
push:
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- label: Linux
|
|
image: ubuntu-latest
|
|
- label: macOS
|
|
image: macos-12
|
|
|
|
name: ${{ matrix.os.label }}
|
|
runs-on: ${{ matrix.os.image }}
|
|
steps:
|
|
- uses: actions/checkout@v3.3.0
|
|
|
|
- name: Install Nix
|
|
uses: zhaofengli/nix-installer-action@zhaofeng
|
|
|
|
- name: Enable Binary Cache
|
|
uses: cachix/cachix-action@v12
|
|
with:
|
|
name: colmena
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
|
|
- name: Build Colmena
|
|
run: nix build -L
|
|
|
|
- name: Build and install Colmena with flake-compat
|
|
run: nix-env -if default.nix
|
|
|
|
- name: Build manual
|
|
run: nix build .#manual -L
|