build-darwin-env #167
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-darwin-env | |
on: | |
push: | |
branches: | |
- 'master' | |
paths: | |
- darwin/** | |
- .github/workflows/darwin.yml | |
- roles/** | |
- '!darwin/**.md' | |
- '!**.md' | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * Sat" | |
jobs: | |
build-macos-env: | |
name: Build macOS Nix env | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- name: Setup Nix Magic Cache | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Build macos-desktop output | |
run: | | |
# Create /run directory | |
echo -e "run\tprivate/var/run" | sudo tee -a /etc/synthetic.conf >/dev/null | |
/System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -t &>/dev/null || true | |
# Build macos-desktop output | |
nix build .#darwinConfigurations.mac-mini.system |