mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-05 08:17:01 +00:00
try out github actions
This commit is contained in:
parent
2afc2c0f6a
commit
1f336df3f2
1 changed files with 32 additions and 0 deletions
32
.github/workflows/test.yml
vendored
Normal file
32
.github/workflows/test.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
name: "Test"
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: macos
|
||||
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
|
||||
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
|
Loading…
Add table
Reference in a new issue