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

This commit is contained in:
Delyan Angelov 2025-09-08 10:35:33 +03:00
parent 2c392f848b
commit 0bd16c2938
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED

View file

@ -29,16 +29,15 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v5
- name: Install SDL2 dependencies
- 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