2023-06-24 16:51:09 +00:00
|
|
|
name: 'Nix build'
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths-ignore:
|
|
|
|
- web/**
|
|
|
|
- doc/**
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths-ignore:
|
|
|
|
- web/**
|
|
|
|
- doc/**
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
|
|
build-and-check:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2023-09-04 17:18:19 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-06-26 23:30:22 +00:00
|
|
|
- name: Install Nix
|
2023-11-27 18:04:14 +00:00
|
|
|
uses: DeterminateSystems/nix-installer-action@v8
|
2023-06-26 23:30:22 +00:00
|
|
|
- name: Setup Nix Cache
|
2023-07-03 17:08:58 +00:00
|
|
|
uses: DeterminateSystems/magic-nix-cache-action@v2
|
2023-06-24 16:51:09 +00:00
|
|
|
- run: nix build
|
|
|
|
- run: nix flake check
|