2022-11-25 16:26:10 +01:00
|
|
|
name: main
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-flake:
|
|
|
|
name: Check Flake
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Install Nix
|
|
|
|
uses: cachix/install-nix-action@v18
|
|
|
|
with:
|
2023-05-25 23:59:56 +02:00
|
|
|
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
|
2022-11-25 16:26:10 +01:00
|
|
|
extra_nix_config: |
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
|
|
|
|
- uses: cachix/cachix-action@v12
|
|
|
|
with:
|
|
|
|
name: fruitbasket
|
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
|
|
extraPullNames: nix-community
|
|
|
|
|
|
|
|
- run: nix build
|
|
|
|
|
|
|
|
- run: nix flake check
|