1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-15 17:51:01 +00:00
nix-darwin/.github/workflows/test.yml
Daiderd Jordan 4903624ee6
update macos label
Seems like this was renamed to macos-$version and macos-latest.
2020-05-14 19:12:18 +02:00

32 lines
863 B
YAML

name: "Test"
on:
pull_request:
push:
jobs:
tests:
runs-on: macos-10.15
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v8
- 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
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