From b6f71c3d03fbb6384ab9e0b97909deed481ba10d Mon Sep 17 00:00:00 2001 From: Martin Hardselius Date: Sat, 1 Mar 2025 21:30:30 +0100 Subject: [PATCH] Build using Determinate Systems installer --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 663f95c..ce15211 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,28 @@ on: - cron: '0 0 * * 0' # Every Sunday at midnight UTC jobs: + build: + name: Build macos + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@main + - name: Setup Cachix + uses: cachix/cachix-action@v15 + with: + name: hardselius + signingKey: ${{ secrets.CACHIX_SIGNING_KEY }} + - name: Build config + run: | + nix build .#darwinConfigurations.githubActions.system + - name: Fix Sequoia nixbld users + run: | + curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix/pr/1448 | sh -s -- repair sequoia --move-existing-users --no-confirm + - name: Switch to bootstrap config + run: | + ./result/sw/bin/darwin-rebuild switch --flake .#githubActions + build-darwin-env: name: Build/cache Darwin Nix env runs-on: macos-latest