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:
|
|
|
|
- uses: actions/checkout@v3
|
2023-06-26 23:30:22 +00:00
|
|
|
- name: Install Nix
|
|
|
|
uses: DeterminateSystems/nix-installer-action@v4
|
|
|
|
- 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
|