Skip to content

Commit 17ad8e1

Browse files
committed
See if we can switch to a system on CI
1 parent e88d360 commit 17ad8e1

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,34 @@ jobs:
4141
run: |
4242
nix build .#darwinConfigurations.${{ matrix.host }}.system --keep-going --print-build-logs --show-trace --verbose
4343
44+
switch-system:
45+
name: Switch to system
46+
runs-on: ${{ matrix.os }}
47+
strategy:
48+
matrix:
49+
host:
50+
- eMac
51+
os:
52+
- macos-14
53+
steps:
54+
- name: Checkout code
55+
uses: actions/checkout@v4
56+
- uses: ./.github/actions/setup
57+
with:
58+
attic_token: ${{ secrets.ATTIC_TOKEN }}
59+
cachix_auth_token: ${{ secrets.CACHIX_AUTH_TOKEN }}
60+
pragmatapro_deploy_key: ${{ secrets.PRAGMATAPRO_DEPLOY_KEY }}
61+
secrets_deploy_key: ${{ secrets.SECRETS_DEPLOY_KEY }}
62+
- name: Build ${{ matrix.host }} host
63+
run: |
64+
# Create /run directory
65+
echo -e "run\tprivate/var/run" | sudo tee -a /etc/synthetic.conf >/dev/null
66+
/System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -t &>/dev/null || true
67+
# Prevent conflict between Cachix installed by workflow and the one installed in the config
68+
nix-env --set-flag priority 1 cachix
69+
nix build .#darwinConfigurations.${{ matrix.host }}.system --keep-going --print-build-logs --show-trace --verbose
70+
sudo ./result/sw/bin/darwin-rebuild switch --flake .#${{ matrix.host }}
71+
4472
check:
4573
name: Check flake
4674
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)