Cache dependencies in actions (#228)

* Cache dependencies in actions

* Add PPA before caching

action does not support adding the PPA
This commit is contained in:
Jack Tench 2026-01-21 17:27:59 +00:00 committed by GitHub
parent bfe757d9f7
commit 2ee65ff9ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,14 +10,29 @@ jobs:
with:
fetch-depth: 0
- name: "Install dependencies"
- name: "Add gcc-15 PPA"
run: |
sudo add-apt-repository ppa:puni070/gcc-noble -y
sudo apt -y update
sudo apt -y install gcc-15 libgtk-3-dev libx11-dev libjansson-dev libluajit-5.1-dev
sudo pip3 install meson
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-15 150
sudo update-alternatives --set gcc /usr/bin/gcc-15
sudo add-apt-repository ppa:puni070/gcc-noble -y
sudo apt update
- name: "Install and cache C dependencies"
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: >
gcc-15
libgtk-3-dev
libx11-dev
libjansson-dev
libluajit-5.1-dev
version: 1.0
- name: "Install Meson"
run: sudo pip3 install meson
- name: "Set up compiler"
run: |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-15 150
sudo update-alternatives --set gcc /usr/bin/gcc-15
- name: "Configure"
run: meson setup build -Dbuildtype=release -Dprefix=/usr