mirror of
https://github.com/srid/haskell-flake.git
synced 2024-09-11 14:05:58 +03:00
37 lines
883 B
YAML
37 lines
883 B
YAML
name: "CI"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
|
|
configure:
|
|
runs-on: x86_64-linux
|
|
outputs:
|
|
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- id: set-matrix
|
|
run: echo "matrix=$(nixci gh-matrix --systems=x86_64-linux,x86_64-darwin,aarch64-darwin | jq -c .)" >> $GITHUB_OUTPUT
|
|
|
|
nix:
|
|
runs-on: ${{ matrix.system }}
|
|
permissions:
|
|
contents: read
|
|
needs: configure
|
|
strategy:
|
|
matrix: ${{ fromJson(needs.configure.outputs.matrix) }}
|
|
fail-fast: false
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: |
|
|
nixci \
|
|
--extra-access-tokens "github.com=${{ secrets.GITHUB_TOKEN }}" \
|
|
build \
|
|
--systems "github:nix-systems/${{ matrix.system }}" \
|
|
.#default.${{ matrix.subflake}}
|