mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
add flake test
This commit is contained in:
parent
d865c6ae4c
commit
46198ef432
1 changed files with 20 additions and 0 deletions
20
.github/workflows/test.yml
vendored
20
.github/workflows/test.yml
vendored
|
@ -30,3 +30,23 @@ jobs:
|
|||
- run: |
|
||||
nix-shell -A uninstaller
|
||||
nix-shell -A uninstaller.check
|
||||
install-flake:
|
||||
runs-on: macos-10.15
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: cachix/install-nix-action@v8
|
||||
- run: |
|
||||
nix-channel --update
|
||||
echo "FIXME workaround channel permission error"
|
||||
nix-shell -A installer
|
||||
echo "TODO installed doesn't support flakes, handle multi-user install"
|
||||
nix-shell -p gnused --run 'sed -i "s/# services.nix-daemon.enable/services.nix-daemon.enable/" modules/examples/simple.nix'
|
||||
- run: |
|
||||
nix-shell -p nixFlakes --run 'nix --experimental-features "nix-command flakes" registry add darwin $PWD'
|
||||
nix-shell -p nixFlakes --run 'nix --experimental-features "nix-command flakes" build ./modules/examples#darwinConfigurations.simple.system'
|
||||
- run: |
|
||||
./result/sw/bin/darwin-rebuild switch --flake ./modules/examples#darwinConfigurations.simple
|
||||
- run: |
|
||||
. /etc/static/bashrc
|
||||
darwin-rebuild build --flake ./modules/examples#darwinConfigurations.simple
|
||||
|
|
Loading…
Reference in a new issue