diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2020-03-28 15:24:17 +0100 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2020-03-28 19:18:22 +0100 |
| commit | 1f336df3f2b6d0db8fa959b45814fa8ad33ea2cb (patch) | |
| tree | e316f2e06b0ee414b420e3b6983d42286b7dcb94 /.github | |
| parent | 2afc2c0f6a23bb69d81f24cf386f5c770e6de941 (diff) | |
try out github actions
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/test.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..a43dc07 --- /dev/null +++ b/.github/workflows/test.yml @@ -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 |
