From de1bf9b815d091d781489a9ea1a52297402077e2 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Fri, 12 Jun 2020 23:46:11 +0200 Subject: [PATCH] add build workflow --- .github/workflows/build.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..bdb5574 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,18 @@ +name: "Build" +on: + # curl -fsSL -XPOST \ + # -H "Accept: application/vnd.github.everest-preview+json" \ + # -H "Authorization: token $GITHUB_TOKEN" \ + # --data '{"event_type": "build", "client_payload": {"args": "-f channel:nixpkgs-unstable hello"}}' \ + # https://api.github.com/repos/LnL7/nix-darwin/dispatches + repository_dispatch: + types: + - build +jobs: + build: + runs-on: macos-10.15 + steps: + - uses: actions/checkout@v2 + - uses: cachix/install-nix-action@v9 + - run: | + nix build ${{ github.event.client_payload.args }} -vL