From 111ecbf545abff5c594a72133207f6601d8d5488 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar <3998+srid@users.noreply.github.com> Date: Fri, 5 Jul 2024 15:26:56 -0400 Subject: [PATCH] chore(ci): Use self-hosted runners And build for all 3 platforms we usually do. --- .github/workflows/ci.yaml | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index eec396e0..2db1c287 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,26 +1,18 @@ -name: "CI Intel Mac" +name: "CI" on: push: branches: - main pull_request: jobs: - build: - runs-on: ${{ matrix.os }} + checks: + runs-on: ${{ matrix.system }} + permissions: + contents: read strategy: matrix: - # Run only on Intel mac, because garnix doesn't support it yet - # https://github.com/garnix-io/issues/issues/16 - os: [macos-latest] + system: [ x86_64-linux, aarch64-darwin, x86_64-darwin ] steps: - uses: actions/checkout@v4 - - uses: DeterminateSystems/nix-installer-action@main - with: - extra-conf: | - trusted-public-keys = cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= - substituters = https://cache.garnix.io?priority=41 https://cache.nixos.org/ - - uses: DeterminateSystems/magic-nix-cache-action@main - - uses: yaxitech/nix-install-pkgs-action@v3 - with: - packages: "github:srid/nixci" - - run: nixci build + - name: Build + run: nixci --extra-access-tokens ${{ secrets.GITHUB_TOKEN }} build --systems "${{ matrix.system }}"