1
1
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-10-26 14:04:00 +03:00

add build workflow

This commit is contained in:
Daiderd Jordan 2020-06-12 23:46:11 +02:00
parent 78434e602d
commit de1bf9b815
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

18
.github/workflows/build.yml vendored Normal file
View File

@ -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