Skip to content

Commit 4e7be3b

Browse files
pftgclaude
andcommitted
chore: CI workflow improvements
setup-ruby-and-dependencies: - Remove unconditional apt-get update (only ran when not needed) - Split vips install: cache action when cache-apt-packages=true, direct apt-get when false (no redundant double-install) release.yml: add timeout-minutes: 10 (prevent hanging release) lint.yml: add timeout-minutes: 3 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9d4f3ad commit 4e7be3b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/actions/setup-ruby-and-dependencies/action.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,16 @@ runs:
2222
bundler-cache: true
2323
cache-version: ${{ inputs.ruby-cache-version }}-v1
2424

25-
- run: sudo apt-get -qq update
26-
shell: bash
27-
2825
- name: Install and cache vips
2926
if: ${{ inputs.cache-apt-packages == 'true' }}
3027
uses: jetthoughts/cache-apt-pkgs-action@fix/upgrade-actions-cache-v5
3128
with:
3229
packages: libvips libglib2.0-0 libglib2.0-dev libwebp-dev libvips42 libpng-dev
3330
version: tests-v2
3431

35-
# fallback if cache version is outdated
36-
- run: sudo apt-get -qq install libvips
32+
- name: Install vips (fallback)
33+
if: ${{ inputs.cache-apt-packages != 'true' }}
34+
run: sudo apt-get -qq update && sudo apt-get -qq install -y libvips
3735
shell: bash
3836

3937
- run: sudo sed -i 's/true/false/g' /etc/fonts/conf.d/10-yes-antialias.conf

.github/workflows/lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
lint:
1818
name: Ruby & YAML
1919
runs-on: ubuntu-latest
20+
timeout-minutes: 3
2021

2122
steps:
2223
- name: Checkout code

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
release:
1414
name: Release v${{ github.event.inputs.version }}
1515
runs-on: ubuntu-latest
16+
timeout-minutes: 10
1617

1718
permissions:
1819
id-token: write

0 commit comments

Comments
 (0)