From 1f336df3f2b6d0db8fa959b45814fa8ad33ea2cb Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Sat, 28 Mar 2020 15:24:17 +0100 Subject: [PATCH] try out github actions --- .github/workflows/test.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..a43dc072 --- /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