1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00
nix-darwin/.github/workflows/test.yml

52 lines
1.7 KiB
YAML
Raw Normal View History

2020-03-28 14:24:17 +00:00
name: "Test"
on:
pull_request:
push:
jobs:
tests:
runs-on: macos-10.15
2020-03-28 14:24:17 +00:00
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
2020-05-29 20:56:37 +00:00
- uses: cachix/install-nix-action@v9
2020-03-28 14:24:17 +00:00
- run: nix-build ./release.nix -I darwin=. -A tests
- run: nix-build ./release.nix -I darwin=. -A manpages
- run: nix-build ./release.nix -I darwin=. -A examples.simple
install:
runs-on: macos-10.15
2020-03-28 14:24:17 +00:00
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v8
- run: |
nix-channel --update
echo "FIXME workaround channel permission error"
- run: |
nix-shell -A installer
nix-shell -A installer.check
- run: |
. /etc/static/bashrc
darwin-rebuild switch -I darwin=.
- run: |
nix-shell -A uninstaller
nix-shell -A uninstaller.check
2020-10-18 12:36:51 +00:00
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"
- 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#simple
2020-10-18 12:36:51 +00:00
- run: |
. /etc/static/bashrc
darwin-rebuild build --flake ./modules/examples#simple