ci: build with nix on macos (and push to cachix) (#2610)

The idea is to ensure the macos nix build works, and to
build a cache in cachix to help local development on macos.
This commit is contained in:
Robert
2023-01-12 11:45:10 +01:00
committed by GitHub
parent 0a56d6ce88
commit f353711ed2
2 changed files with 29 additions and 8 deletions
+21
View File
@@ -139,6 +139,27 @@ jobs:
postgrest-push-cachix
Build-Macos-Nix:
name: Build MacOS (Nix)
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Setup Nix Environment
uses: ./.github/actions/setup-nix
with:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build everything
run: |
nix-build
nix-env -f default.nix -iA devTools
- name: Push to Cachix (main branch only)
if: ${{ github.ref == 'refs/heads/main' }}
run: |
postgrest-push-cachix
Build-Stack:
strategy:
fail-fast: false