From b6368b262de01883a79656e1186138399b9713ac Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Tue, 8 Aug 2023 18:37:42 +0200 Subject: [PATCH] feat: use self-hosted runner for main build goal is to make it faster --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 995acc0d..5cd892c2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,7 +21,7 @@ env: jobs: build: - runs-on: ${{ fromJSON(vars.CI_BUILD_RUNS_ON || '"ubuntu-latest"') }} + runs-on: ${{ fromJSON(vars.CI_BUILD_RUNS_ON || fromJSON(github.repository == 'ipfs/distributions' && '["self-hosted", "linux", "x64", "2xlarge"]' || '"ubuntu-latest"') }} steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 @@ -95,7 +95,7 @@ jobs: continue-on-error: true # skip if no releases persist: - runs-on: "ubuntu-latest" + runs-on: ${{ fromJSON(vars.CI_BUILD_RUNS_ON || fromJSON(github.repository == 'ipfs/distributions' && '["self-hosted", "linux", "x64", "2xlarge"]' || '"ubuntu-latest"') }} needs: sign-macos environment: Deploy steps: