Skip to content

Commit

Permalink
Switches most jobs to a self-hosted environment + enhances timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkratz committed May 17, 2024
1 parent b745a9d commit 5d87e8b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 19 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand All @@ -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]
Expand All @@ -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
Expand Down Expand Up @@ -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]
Expand All @@ -173,4 +175,4 @@ jobs:
push: true
tags: maxkratz/texlive:${{ matrix.year }}
platforms: linux/amd64,linux/arm/v7
timeout-minutes: 720
timeout-minutes: 1440
21 changes: 12 additions & 9 deletions .github/workflows/build-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand All @@ -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]
Expand All @@ -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]
Expand All @@ -118,4 +121,4 @@ jobs:
push: false
tags: maxkratz/texlive:${{ matrix.year }}
platforms: linux/amd64,linux/arm/v7
timeout-minutes: 720
timeout-minutes: 1440

0 comments on commit 5d87e8b

Please sign in to comment.