mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
[snap] enable ccache in Linux Snap workflow
Also adding `push` to triggering events to populate the cache. Signed-off-by: Michał Sawicz <michal@sawicz.net>
This commit is contained in:
parent
d2bbe36572
commit
4ecb8ba0cc
2 changed files with 69 additions and 0 deletions
44
.github/workflows/linux-snap.patch
vendored
Normal file
44
.github/workflows/linux-snap.patch
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
--- a/snap/snapcraft.yaml
|
||||
+++ b/snap/snapcraft.yaml
|
||||
@@ -32,6 +32,7 @@ parts:
|
||||
googlemaps:
|
||||
source: git://github.com/Subsurface/googlemaps.git
|
||||
build-packages:
|
||||
+ - ccache
|
||||
- wget
|
||||
override-pull: |
|
||||
snapcraftctl pull
|
||||
@@ -75,6 +76,8 @@ parts:
|
||||
plugin: qmake
|
||||
options:
|
||||
- INCLUDEPATH+=QtHeaders
|
||||
+ - QMAKE_CC=ccache gcc
|
||||
+ - QMAKE_CXX=ccache g++
|
||||
|
||||
desktop-qt5:
|
||||
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
|
||||
@@ -105,7 +108,11 @@ parts:
|
||||
source: .
|
||||
source-type: git
|
||||
source-subdir: libdivecomputer
|
||||
+ configflags:
|
||||
+ - CC=ccache gcc
|
||||
+ - CXX=ccache g++
|
||||
build-packages:
|
||||
+ - ccache
|
||||
- libbluetooth-dev
|
||||
- libhidapi-dev
|
||||
- libusb-dev
|
||||
@@ -127,9 +134,12 @@ parts:
|
||||
- -DLIBGIT2_DYNAMIC=ON
|
||||
- -DFTDISUPPORT=ON
|
||||
- -DLIBDIVECOMPUTER_LIBRARIES=../../../stage/lib/libdivecomputer.so
|
||||
+ - -DCMAKE_C_COMPILER_LAUNCHER=ccache
|
||||
+ - -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||||
source-type: git
|
||||
build-packages:
|
||||
- build-essential
|
||||
+ - ccache
|
||||
- libcurl4-gnutls-dev
|
||||
- libftdi1-dev
|
||||
- libgit2-dev
|
Loading…
Add table
Add a link
Reference in a new issue