mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-09-11 12:49:18 +03:00
add flake test
This commit is contained in:
parent
d865c6ae4c
commit
46198ef432
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 New Issue
Block a user