mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-15 17:51:01 +00:00
4903624ee6
Seems like this was renamed to macos-$version and macos-latest.
32 lines
863 B
YAML
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
|