Skip to content

Commit 4df27a0

Browse files
committed
gh-actions: install a backport for the latest ccache
1 parent 50949d4 commit 4df27a0

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
submodules: recursive
132132
- name: CPU Information
133133
run: cat /proc/cpuinfo
134-
- run: sudo apt-get update
134+
- run: sudo add-apt-repository ppa:stephanosio/ccache && sudo apt-get update
135135
- name: ccache
136136
uses: hendrikmuhs/ccache-action@v1.2
137137
with:
@@ -174,7 +174,7 @@ jobs:
174174
submodules: recursive
175175
- name: CPU Information
176176
run: cat /proc/cpuinfo
177-
- run: sudo apt-get update
177+
- run: sudo add-apt-repository ppa:stephanosio/ccache && sudo apt-get update
178178
- name: ccache
179179
uses: hendrikmuhs/ccache-action@v1.2
180180
with:
@@ -213,7 +213,7 @@ jobs:
213213
- uses: actions/checkout@v5
214214
with:
215215
submodules: recursive
216-
- run: sudo apt-get update
216+
- run: sudo add-apt-repository ppa:stephanosio/ccache && sudo apt-get update
217217
- name: ccache
218218
uses: hendrikmuhs/ccache-action@v1.2
219219
with:
@@ -258,7 +258,7 @@ jobs:
258258
- id: cpu
259259
name: CPU Information
260260
run: cat /proc/cpuinfo
261-
- run: sudo apt-get update
261+
- run: sudo add-apt-repository ppa:stephanosio/ccache && sudo apt-get update
262262
- name: ccache
263263
uses: hendrikmuhs/ccache-action@v1.2
264264
with:
@@ -292,7 +292,7 @@ jobs:
292292
run: |
293293
cat /proc/cpuinfo
294294
echo "model_name=$(grep -m1 'model name' < /proc/cpuinfo | awk '-F: ' '{ print $2}' | tr '-' '_')" >> "$GITHUB_OUTPUT"
295-
- run: sudo apt-get update
295+
- run: sudo add-apt-repository ppa:stephanosio/ccache && sudo apt-get update
296296
- name: ccache
297297
uses: hendrikmuhs/ccache-action@v1.2
298298
with:
@@ -367,7 +367,7 @@ jobs:
367367
run: |
368368
cat /proc/cpuinfo
369369
echo "model_name=$(grep -m1 'model name' < /proc/cpuinfo || grep -m1 Features < /proc/cpuinfo | awk '-F: ' '{ print $2}' | tr '-' '_')" >> "$GITHUB_OUTPUT"
370-
- run: sudo apt-get update
370+
- run: sudo add-apt-repository ppa:stephanosio/ccache && sudo apt-get update
371371
- name: ccache
372372
uses: hendrikmuhs/ccache-action@v1.2
373373
with:
@@ -479,8 +479,9 @@ jobs:
479479
run: cat /proc/cpuinfo
480480
- name: Install APT Dependencies
481481
run: |
482+
sudo add-apt-repository ppa:stephanosio/ccache
482483
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
483-
sudo apt-get update && sudo apt-get -y --no-install-recommends install ninja-build \
484+
sudo apt-get update && sudo apt-get -y --no-install-recommends install ccache ninja-build \
484485
gcc-${{ matrix.version }}-${{ matrix.arch_gnu }}-linux-gnu${{ matrix.arch_gnu_abi }} \
485486
g++-${{ matrix.version }}-${{ matrix.arch_gnu }}-linux-gnu${{ matrix.arch_gnu_abi }} binfmt-support \
486487
qemu-user-static pipx libc6-${{ matrix.arch_deb }}-cross libstdc++-${{ matrix.version }}-dev-${{ matrix.arch_deb }}-cross
@@ -534,8 +535,9 @@ jobs:
534535
run: |
535536
#add-apt-repository ppa:savoury1/virtualisation
536537
#add-apt-repository ppa:savoury1/display
538+
sudo add-apt-repository ppa:stephanosio/ccache
537539
sudo apt-get update -y
538-
sudo apt-get install -y --no-install-recommends ninja-build pkg-config \
540+
sudo apt-get install -y --no-install-recommends ccache ninja-build pkg-config \
539541
qemu-user-static clang-${{ matrix.version }} ninja-build binfmt-support \
540542
libc6-${{ matrix.arch_deb }}-cross meson llvm-${{ matrix.version }} \
541543
libstdc++-12-dev-${{ matrix.arch_deb }}-cross \
@@ -589,11 +591,12 @@ jobs:
589591
run: cat /proc/cpuinfo
590592
- name: Install APT Dependencies
591593
run: |
594+
sudo add-apt-repository ppa:stephanosio/ccache
592595
sudo apt-get update && sudo apt-get install -y --no-install-recommends \
593596
ninja-build pkg-config qemu-user-static clang-${{ matrix.version }} \
594597
ninja-build binfmt-support libc6-${{ matrix.arch_deb }}-cross meson \
595598
libstdc++-12-dev-${{ matrix.arch_deb }}-cross \
596-
binutils-${{ matrix.arch_gnu }}-linux-gnu
599+
binutils-${{ matrix.arch_gnu }}-linux-gnu ccache
597600
- name: ccache
598601
uses: hendrikmuhs/ccache-action@v1.2
599602
with:
@@ -677,8 +680,9 @@ jobs:
677680
run: cat /proc/cpuinfo
678681
- name: Install APT Dependencies
679682
run: |
683+
sudo add-apt-repository ppa:stephanosio/ccache && \
680684
sudo apt-get update -y && \
681-
sudo apt-get -y --no-install-recommends install ninja-build \
685+
sudo apt-get -y --no-install-recommends install ccache ninja-build \
682686
binfmt-support clang-${{ matrix.version }} llvm-${{ matrix.version }} lld-${{ matrix.version }} \
683687
qemu-user-static pipx libc6-${{ matrix.arch_deb }}-cross libstdc++-14-dev-${{ matrix.arch_deb }}-cross \
684688
binutils-${{ matrix.arch_gnu }}-linux-gnu${{ matrix.arch_gnu_abi }}

0 commit comments

Comments
 (0)