From 7134255e450da5f22c93576aaab597b2d6d58595 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Tue, 8 Aug 2023 18:37:42 +0200 Subject: [PATCH 1/4] 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..852842e8 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: From 7f97011af02a05011a70d4cbbfaa460c88c358cc Mon Sep 17 00:00:00 2001 From: Piotr Galar Date: Fri, 11 Aug 2023 21:57:58 +0200 Subject: [PATCH 2/4] Apply suggestions from code review --- .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 852842e8..78e61919 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) || fromJSON(github.repository == 'ipfs/distributions' && '["self-hosted", "linux", "x64", "2xlarge"]') || '"ubuntu-latest"') }} + runs-on: ${{ fromJSON(vars.CI_BUILD_RUNS_ON || '"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: ${{ fromJSON(vars.CI_BUILD_RUNS_ON) || fromJSON(github.repository == 'ipfs/distributions' && '["self-hosted", "linux", "x64", "2xlarge"]') || '"ubuntu-latest"') }} + runs-on: ${{ fromJSON(vars.CI_BUILD_RUNS_ON || '"ubuntu-latest"') }} needs: sign-macos environment: Deploy steps: From 3f9e4c9c7c0d203f41d9d46429e1c216ccddf1da Mon Sep 17 00:00:00 2001 From: Piotr Galar Date: Fri, 11 Aug 2023 22:00:50 +0200 Subject: [PATCH 3/4] wip: temporarily hard-code runs-on values --- .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 78e61919..1c8d9714 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: ["self-hosted", "linux", "x64", "2xlarge"] 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: ${{ fromJSON(vars.CI_BUILD_RUNS_ON || '"ubuntu-latest"') }} + runs-on: ["self-hosted", "linux", "x64", "2xlarge"] needs: sign-macos environment: Deploy steps: From 9389caef5183641b0e3e5b3ca6d19956cb65f05d Mon Sep 17 00:00:00 2001 From: Piotr Galar Date: Wed, 20 Sep 2023 17:43:48 +0200 Subject: [PATCH 4/4] chore: apply suggestions from code review --- .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 1c8d9714..78e61919 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,7 +21,7 @@ env: jobs: build: - runs-on: ["self-hosted", "linux", "x64", "2xlarge"] + runs-on: ${{ fromJSON(vars.CI_BUILD_RUNS_ON || '"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: ["self-hosted", "linux", "x64", "2xlarge"] + runs-on: ${{ fromJSON(vars.CI_BUILD_RUNS_ON || '"ubuntu-latest"') }} needs: sign-macos environment: Deploy steps: