mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-02 23:07:36 +02:00
Merge pull request #2960 from Alexander-Wilms/ccache
Enable ccache for CI
This commit is contained in:
commit
f54a3c4e6c
17
.github/workflows/github.yml
vendored
17
.github/workflows/github.yml
vendored
@ -158,6 +158,15 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
VCMI_BUILD_PLATFORM: x64
|
VCMI_BUILD_PLATFORM: x64
|
||||||
|
|
||||||
|
- name: ccache
|
||||||
|
if: startsWith(matrix.preset, 'ios') != true
|
||||||
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
with:
|
||||||
|
key: ${{ matrix.preset }}
|
||||||
|
# actual cache takes up less space, at most ~1 GB
|
||||||
|
max-size: "5G"
|
||||||
|
verbose: 2
|
||||||
|
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
if: "${{ matrix.conan_profile != '' }}"
|
if: "${{ matrix.conan_profile != '' }}"
|
||||||
with:
|
with:
|
||||||
@ -193,7 +202,13 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
PULL_REQUEST: ${{ github.event.pull_request.number }}
|
PULL_REQUEST: ${{ github.event.pull_request.number }}
|
||||||
|
|
||||||
- name: CMake Preset
|
- name: CMake Preset with ccache
|
||||||
|
if: startsWith(matrix.preset, 'ios') != true
|
||||||
|
run: |
|
||||||
|
cmake -DCMAKE_CXX_COMPILER_LAUNCHER=ccache --preset ${{ matrix.preset }}
|
||||||
|
|
||||||
|
- name: CMake Preset without ccache
|
||||||
|
if: startsWith(matrix.preset, 'ios')
|
||||||
run: |
|
run: |
|
||||||
cmake --preset ${{ matrix.preset }}
|
cmake --preset ${{ matrix.preset }}
|
||||||
|
|
||||||
|
@ -25,7 +25,8 @@
|
|||||||
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
||||||
"ENABLE_TEST": "OFF",
|
"ENABLE_TEST": "OFF",
|
||||||
"ENABLE_STRICT_COMPILATION": "ON",
|
"ENABLE_STRICT_COMPILATION": "ON",
|
||||||
"ENABLE_GITVERSION": "$env{VCMI_PACKAGE_GITVERSION}"
|
"ENABLE_GITVERSION": "$env{VCMI_PACKAGE_GITVERSION}",
|
||||||
|
"ENABLE_PCH" : "OFF"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -217,7 +218,10 @@
|
|||||||
"inherits": [
|
"inherits": [
|
||||||
"base-ios-release",
|
"base-ios-release",
|
||||||
"ios-device-conan"
|
"ios-device-conan"
|
||||||
]
|
],
|
||||||
|
"cacheVariables": {
|
||||||
|
"ENABLE_PCH" : "ON"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ios-release-legacy",
|
"name": "ios-release-legacy",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user