mirror of
https://github.com/LibreSplit/LibreSplit.git
synced 2026-03-10 15:00:25 +00:00
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:
parent
bfe757d9f7
commit
2ee65ff9ee
1 changed files with 22 additions and 7 deletions
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue