-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (30 loc) · 898 Bytes
/
darwin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: build-darwin-env
on:
push:
branches:
- 'master'
paths:
- darwin/**
- .github/workflows/darwin.yml
- roles/**
- '!darwin/**.md'
- '!**.md'
workflow_dispatch:
jobs:
build-macos-env:
name: Build macOS Nix env
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- 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.intel-macbook.system