mirror of
https://github.com/srid/haskell-flake.git
synced 2024-08-16 01:10:27 +03:00
chore(ci): Add x86_64-*
(#329)
This commit is contained in:
parent
f533f1446f
commit
569e28636c
19
.github/workflows/ci.yaml
vendored
19
.github/workflows/ci.yaml
vendored
@ -1,24 +1,35 @@
|
|||||||
name: "CI"
|
name: "CI"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
configure:
|
configure:
|
||||||
runs-on: self-hosted
|
runs-on: x86_64-linux
|
||||||
outputs:
|
outputs:
|
||||||
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- id: set-matrix
|
- id: set-matrix
|
||||||
run: echo "matrix=$(nixci gh-matrix --systems=aarch64-linux,aarch64-darwin | jq -c .)" >> $GITHUB_OUTPUT
|
run: echo "matrix=$(nixci gh-matrix --systems=x86_64-linux,x86_64-darwin,aarch64-darwin | jq -c .)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
nix:
|
nix:
|
||||||
runs-on: self-hosted
|
runs-on: ${{ matrix.system }}
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
needs: configure
|
needs: configure
|
||||||
strategy:
|
strategy:
|
||||||
matrix: ${{ fromJson(needs.configure.outputs.matrix) }}
|
matrix: ${{ fromJson(needs.configure.outputs.matrix) }}
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: nixci build --systems "github:nix-systems/${{ matrix.system }}" .#default.${{ matrix.subflake}}
|
- run: |
|
||||||
|
nixci \
|
||||||
|
--extra-access-tokens "github.com=${{ secrets.GITHUB_TOKEN }}" \
|
||||||
|
build \
|
||||||
|
--systems "github:nix-systems/${{ matrix.system }}" \
|
||||||
|
.#default.${{ matrix.subflake}}
|
||||||
|
Loading…
Reference in New Issue
Block a user