From 5d87e8bef919397c230ed0af414cda3e7599989a Mon Sep 17 00:00:00 2001 From: Maximilian Kratz Date: Fri, 17 May 2024 07:21:07 +0200 Subject: [PATCH] Switches most jobs to a self-hosted environment + enhances timeouts --- .github/workflows/build-and-push.yml | 22 ++++++++++++---------- .github/workflows/build-only.yml | 21 ++++++++++++--------- 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index ca611a0..fa3a3d4 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -31,9 +31,10 @@ jobs: platforms: linux/amd64,linux/arm64,linux/arm/v7 build-and-push-image: - runs-on: [ubuntu-22.04] + # Use a self-hosted runner to circumvent 6h timeout + runs-on: [self-hosted] needs: [build-and-push-base] - timeout-minutes: 720 + timeout-minutes: 1440 strategy: matrix: year: [2017, 2018, 2019, 2020, 2021, 2022] @@ -56,13 +57,13 @@ jobs: push: true tags: maxkratz/texlive:${{ matrix.year }} platforms: linux/amd64,linux/arm64,linux/arm/v7 - timeout-minutes: 720 + timeout-minutes: 1440 build-and-push-image-2023: # Use a self-hosted runner to circumvent the small storage size of GitHub-hosted runners runs-on: [self-hosted] needs: [build-and-push-base] - timeout-minutes: 720 + timeout-minutes: 1440 strategy: matrix: year: [2023] @@ -85,14 +86,14 @@ jobs: push: true tags: maxkratz/texlive:${{ matrix.year }} platforms: linux/amd64,linux/arm64,linux/arm/v7 - timeout-minutes: 720 + timeout-minutes: 1440 # latest is an extra build step because of buggy GitHub Actions if conditions build-and-push-latest-image: # Use a self-hosted runner to circumvent the small storage size of GitHub-hosted runners runs-on: [self-hosted] needs: [build-and-push-base] - timeout-minutes: 720 + timeout-minutes: 1440 strategy: matrix: year: [2024] @@ -117,7 +118,7 @@ jobs: maxkratz/texlive:${{ matrix.year }} maxkratz/texlive:latest platforms: linux/amd64,linux/arm64,linux/arm/v7 - timeout-minutes: 720 + timeout-minutes: 1440 build-and-push-image-variants: # Use a self-hosted runner to circumvent the small storage size of GitHub-hosted runners @@ -148,9 +149,10 @@ jobs: # 2016 can not be built with arm64 support build-and-push-2016-image: - runs-on: [ubuntu-22.04] + # Use a self-hosted runner to circumvent 6h timeout + runs-on: [self-hosted] needs: [build-and-push-base] - timeout-minutes: 720 + timeout-minutes: 1440 strategy: matrix: year: [2016] @@ -173,4 +175,4 @@ jobs: push: true tags: maxkratz/texlive:${{ matrix.year }} platforms: linux/amd64,linux/arm/v7 - timeout-minutes: 720 + timeout-minutes: 1440 diff --git a/.github/workflows/build-only.yml b/.github/workflows/build-only.yml index 58034b1..745ef3c 100644 --- a/.github/workflows/build-only.yml +++ b/.github/workflows/build-only.yml @@ -26,9 +26,10 @@ jobs: platforms: linux/amd64,linux/arm64,linux/arm/v7 build-image: - runs-on: [ubuntu-22.04] + # Use a self-hosted runner to circumvent 6h timeout + runs-on: [self-hosted] needs: [build-base] - timeout-minutes: 720 + timeout-minutes: 1440 strategy: matrix: year: [2017, 2018, 2019, 2020, 2021, 2022, 2023] @@ -46,7 +47,7 @@ jobs: push: false tags: maxkratz/texlive:${{ matrix.year }} platforms: linux/amd64,linux/arm64,linux/arm/v7 - timeout-minutes: 720 + timeout-minutes: 1440 build-image-variants: # Use a self-hosted runner to circumvent the small storage size of GitHub-hosted runners @@ -72,9 +73,10 @@ jobs: # latest is an extra build step because of buggy GitHub Actions if conditions build-latest-image: - runs-on: [ubuntu-22.04] + # Use a self-hosted runner to circumvent 6h timeout + runs-on: [self-hosted] needs: [build-base] - timeout-minutes: 720 + timeout-minutes: 1440 strategy: matrix: year: [2024] @@ -94,13 +96,14 @@ jobs: maxkratz/texlive:${{ matrix.year }} maxkratz/texlive:latest platforms: linux/amd64,linux/arm64,linux/arm/v7 - timeout-minutes: 720 + timeout-minutes: 1440 # 2016 can not be built with arm64 support build-2016-image: - runs-on: [ubuntu-22.04] + # Use a self-hosted runner to circumvent 6h timeout + runs-on: [self-hosted] needs: [build-base] - timeout-minutes: 720 + timeout-minutes: 1440 strategy: matrix: year: [2016] @@ -118,4 +121,4 @@ jobs: push: false tags: maxkratz/texlive:${{ matrix.year }} platforms: linux/amd64,linux/arm/v7 - timeout-minutes: 720 + timeout-minutes: 1440