2021-02-11 20:55:45 +01:00
|
|
|
name: Build
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-11-17 06:56:28 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-01-02 01:41:35 +01:00
|
|
|
os:
|
2022-08-17 04:15:43 +02:00
|
|
|
- label: Linux
|
|
|
|
image: ubuntu-latest
|
|
|
|
- label: macOS
|
2022-08-19 01:38:01 +02:00
|
|
|
image: macos-12
|
2022-08-17 04:15:43 +02:00
|
|
|
|
2023-01-28 07:52:28 +01:00
|
|
|
name: ${{ matrix.os.label }}
|
2022-08-17 04:15:43 +02:00
|
|
|
runs-on: ${{ matrix.os.image }}
|
2021-02-11 20:55:45 +01:00
|
|
|
steps:
|
2023-01-28 07:44:41 +01:00
|
|
|
- uses: actions/checkout@v3.3.0
|
2022-08-17 04:15:43 +02:00
|
|
|
|
2023-01-28 07:44:41 +01:00
|
|
|
- name: Install Nix
|
|
|
|
uses: zhaofengli/nix-installer-action@zhaofeng
|
2021-11-22 20:20:41 +01:00
|
|
|
|
|
|
|
- name: Enable Binary Cache
|
2023-01-28 07:44:41 +01:00
|
|
|
uses: cachix/cachix-action@v12
|
2021-11-18 07:21:00 +01:00
|
|
|
with:
|
|
|
|
name: colmena
|
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
2021-06-29 10:02:43 +02:00
|
|
|
|
2021-11-17 06:56:28 +01:00
|
|
|
- name: Build Colmena
|
|
|
|
run: nix build -L
|
2021-11-18 07:21:00 +01:00
|
|
|
|
2021-12-07 00:08:09 +01:00
|
|
|
- name: Build and install Colmena with flake-compat
|
|
|
|
run: nix-env -if default.nix
|
2021-09-20 07:03:39 +02:00
|
|
|
|
2021-11-18 07:21:00 +01:00
|
|
|
- name: Build manual
|
|
|
|
run: nix build .#manual -L
|