From 569e28636c1aaee767a43741511fb36a6d3c284b Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar <3998+srid@users.noreply.github.com> Date: Mon, 17 Jun 2024 15:44:20 -0400 Subject: [PATCH] chore(ci): Add `x86_64-*` (#329) --- .github/workflows/ci.yaml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c1c313d..b980fd2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,24 +1,35 @@ name: "CI" + on: push: branches: - master pull_request: + jobs: + configure: - runs-on: self-hosted + 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=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: - runs-on: self-hosted + 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 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}}