ci: use awalsh128/cache-apt-pkgs-action@v1.5.3 instead of a manual apt update/apt install step, to leverage caching more (#25256)

This commit is contained in:
Delyan Angelov 2025-09-08 11:17:10 +03:00 committed by GitHub
parent 2c392f848b
commit 619bd968be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,19 +4,23 @@ on:
workflow_dispatch:
push:
paths:
- 'vlib/**'
- 'vlib/v/checker/**.v'
- 'vlib/v/gen/c/**.v'
- 'thirdparty/**'
- 'cmd/tools/builders/**.v'
- 'cmd/tools/vshader.v'
- '**/puzzle_vibes_ci.yml'
- '!**_test.v'
- '!**.md'
pull_request:
paths:
- 'vlib/**'
- 'vlib/v/checker/**'
- 'vlib/v/gen/c/**'
- 'thirdparty/**'
- 'cmd/tools/builders/**.v'
- 'cmd/tools/vshader.v'
- '**/puzzle_vibes_ci.yml'
- '!**_test.v'
- '!**.md'
concurrency:
@ -29,16 +33,14 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v5
- uses: awalsh128/cache-apt-pkgs-action@v1.5.3
with:
packages: libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev
version: 1.0
- name: Build V
run: make && ./v symlink
- name: Install dependencies
run: |
.github/workflows/disable_azure_mirror.sh
v retry 'sudo apt update'
v retry 'sudo apt install -y libsdl2-dev libsdl2-ttf-dev'
v retry 'sudo apt install -y libsdl2-mixer-dev libsdl2-image-dev'
- name: Install & Setup SDL
run: v retry -- v install sdl && v ~/.vmodules/sdl/setup.vsh
@ -55,7 +57,7 @@ jobs:
run: cd puzzle_vibes && v -g .
- name: Check PV compiles with -prod
run: cd puzzle_vibes && v -prod .
run: cd puzzle_vibes && v -prod -no-prod-options .
- name: Check PV compiles with -prod and -g
run: cd puzzle_vibes && v -prod -g .
run: cd puzzle_vibes && v -prod -g -no-prod-options .