aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-12-18 22:00:08 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-12-18 23:05:28 +0900
commit141f2e3685f2518731f6b1c89e29622338c6a806 (patch)
treed4c1f96d2b3c62e1e691a000f0cc173e42004cee
parent73aa285e8f36433a07f3b5bacd7859f84cfd652d (diff)
workflows: cache apt packages
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
-rw-r--r--.gitea/workflows/test.yml27
1 files changed, 15 insertions, 12 deletions
diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml
index 226f296f..9add0f45 100644
--- a/.gitea/workflows/test.yml
+++ b/.gitea/workflows/test.yml
@@ -11,19 +11,22 @@ jobs:
container:
image: node:16-bookworm-slim
steps:
- - name: Get dependencies
+ - name: Enable backports
+ run: >-
+ echo 'deb http://deb.debian.org/debian bookworm-backports main' >> /etc/apt/sources.list.d/backports.list
+ if: ${{ runner.os == 'Linux' }}
+
+ - name: Ensure environment
run: >-
- echo 'deb http://deb.debian.org/debian bookworm-backports main' >> /etc/apt/sources.list.d/backports.list &&
- apt-get update &&
- apt-get install -y
- acl
- git
- gcc
- pkg-config
- libwayland-dev
- wayland-protocols/bookworm-backports
- libxcb1-dev
- libacl1-dev
+ apt-get update && apt-get install -y curl wget sudo libxml2
+ if: ${{ runner.os == 'Linux' }}
+
+ - name: Get dependencies
+ uses: awalsh128/cache-apt-pkgs-action@latest
+ with:
+ packages: acl git gcc pkg-config libwayland-dev wayland-protocols/bookworm-backports libxcb1-dev libacl1-dev
+ version: 1.0
+ #execute_install_scripts: true
if: ${{ runner.os == 'Linux' }}
- name: Checkout