Skip to content

Commit d294705

Browse files
committed
ci: extract .github/actions/cache-apt-packages-action/action.yml, use it in puzzle_vibes_ci.yml
1 parent 71d2e3f commit d294705

2 files changed

Lines changed: 31 additions & 4 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: 'Cache Apt Packages'
2+
description: 'Cache all commonly used apt packages to speed up CI jobs'
3+
4+
# imagemagick : convert, mogrify
5+
# xvfb : xvfb
6+
# openimageio-tools : idiff
7+
# libxcursor-dev libxi-dev : V gfx deps
8+
# libgl1-mesa-dri : For headless rendering on the CI / software DRI driver (LIBGL_ALWAYS_SOFTWARE=true)
9+
# freeglut3-dev : Fixes graphic apps compilation with tcc
10+
# sdl2 : needed for Puzzle Vibes & Chocolate Doom
11+
# libsodium-dev : needed for Gitly and C2V
12+
13+
runs:
14+
using: 'composite'
15+
steps:
16+
- uses: awalsh128/cache-apt-pkgs-action@v1.5.3
17+
with:
18+
version: 1.0
19+
packages: expect binutils postgresql sqlite3 clang valgrind \
20+
imagemagick openimageio-tools xvfb xsel xclip \
21+
libsodium-dev libpq-dev libssl-dev libsqlite3-dev \
22+
libfreetype6-dev libxi-dev libxcursor-dev \
23+
libgl-dev libxrandr-dev libasound2-dev \
24+
libx11-dev freeglut3-dev mesa-common-dev libgl1-mesa-dev libgl1-mesa-dri \
25+
libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev libsdl2-net-dev \
26+
libpng-dev libsamplerate0-dev \
27+
xfonts-75dpi xfonts-base
28+
- name: Install common packages
29+
run: echo "done installing packages"
30+
shell: bash

‎.github/workflows/puzzle_vibes_ci.yml‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ jobs:
3333
timeout-minutes: 20
3434
steps:
3535
- uses: actions/checkout@v5
36-
- uses: awalsh128/cache-apt-pkgs-action@v1.5.3
37-
with:
38-
packages: libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev
39-
version: 1.0
36+
- uses: ./.github/actions/cache-apt-packages-action
4037

4138
- name: Build V
4239
run: make && ./v symlink

0 commit comments

Comments
 (0)