workflows: cache apt packages
Some checks failed
Tests / Go tests (push) Failing after 9s
Nix / NixOS tests (push) Has been cancelled

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
Ophestra 2024-12-18 22:00:08 +09:00
parent 73aa285e8f
commit 38b65635bf
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q

View File

@ -11,19 +11,19 @@ jobs:
container: container:
image: node:16-bookworm-slim image: node:16-bookworm-slim
steps: steps:
- name: Get dependencies - name: Install wayland-protocols
run: >- run: >-
echo 'deb http://deb.debian.org/debian bookworm-backports main' >> /etc/apt/sources.list.d/backports.list && echo 'deb http://deb.debian.org/debian bookworm-backports main' >> /etc/apt/sources.list.d/backports.list &&
apt-get update && sudo apt-get update && sudo apt-get install -y wayland-protocols/bookworm-backports
apt-get install -y if: ${{ runner.os == 'Linux' }}
acl
git - name: Get dependencies
gcc uses: awalsh128/cache-apt-pkgs-action@latest
pkg-config with:
libwayland-dev packages: acl git gcc pkg-config libwayland-dev libxcb1-dev libacl1-dev
wayland-protocols/bookworm-backports version: 1.0
libxcb1-dev debug: true
libacl1-dev execute_install_scripts: true
if: ${{ runner.os == 'Linux' }} if: ${{ runner.os == 'Linux' }}
- name: Checkout - name: Checkout