mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 23:04:36 +01:00
Extend Android, AppImage builds with ccache support
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -239,7 +239,7 @@ jobs:
|
||||
run: . scripts/setenv -q && get-discord-rpc
|
||||
- name: Build OpenRCT2
|
||||
shell: bash
|
||||
run: . scripts/setenv -q && build -DCMAKE_BUILD_TYPE=Release -DAPPIMAGE=ON -DOPENRCT2_USE_CCACHE=off
|
||||
run: . scripts/setenv -q && build -DCMAKE_BUILD_TYPE=Release -DAPPIMAGE=ON -DOPENRCT2_USE_CCACHE=on
|
||||
- name: Build AppImage
|
||||
shell: bash
|
||||
run: . scripts/setenv -q && build-appimage
|
||||
@@ -306,6 +306,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
- name: ccache
|
||||
uses: hendrikmuhs/ccache-action@v1
|
||||
- name: Build OpenRCT2
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
@@ -146,6 +146,19 @@ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++1z ${COMMON_COMPILE_OPTIONS} -Wnon-virtual-dtor")
|
||||
get_filename_component(ORCT2_ROOT "${CMAKE_SOURCE_DIR}/../../../../../" REALPATH)
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH "${ORCT2_ROOT}/cmake")
|
||||
|
||||
find_package(CCache)
|
||||
|
||||
if (CCache_FOUND)
|
||||
option(OPENRCT2_USE_CCACHE "Use CCache to improve recompilation speed (optional)" ON)
|
||||
if (OPENRCT2_USE_CCACHE)
|
||||
# Use e.g. "ccache clang++" instead of "clang++"
|
||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCache_EXECUTABLE}")
|
||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK "${CCache_EXECUTABLE}")
|
||||
endif (OPENRCT2_USE_CCACHE)
|
||||
endif (CCache_FOUND)
|
||||
|
||||
file(GLOB_RECURSE LIBOPENRCT2_SOURCES
|
||||
"${ORCT2_ROOT}/src/openrct2/*.cpp"
|
||||
"${ORCT2_ROOT}/src/openrct2/*.h"
|
||||
|
||||
Reference in New Issue
Block a user