It might be beneficial to set up a matrix ([docs](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-a-multi-dimension-matrix)) and run all major supported macOS versions in parallel. Reason: macos-10.15 is [being deprecated](https://github.com/actions/runner-images/issues/5583) and will be fully unsupported by Aug 30 2022.
18 lines
579 B
YAML
18 lines
579 B
YAML
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-12
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: cachix/install-nix-action@v9
|
|
- run: |
|
|
nix build ${{ github.event.client_payload.args }} -vL
|