mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
[CI] ccache for linux build
This commit is contained in:
22
.github/workflows/core_build.yml
vendored
22
.github/workflows/core_build.yml
vendored
@@ -60,7 +60,25 @@ jobs:
|
|||||||
ccache:${{ matrix.os }}
|
ccache:${{ matrix.os }}
|
||||||
|
|
||||||
- name: Install Requirements
|
- name: Install Requirements
|
||||||
run: sudo apt-get update && sudo apt-get install git cmake make gcc g++ clang libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev mysql-server libboost-all-dev
|
run: sudo apt-get update && sudo apt-get install ccache git cmake make gcc g++ clang libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev mysql-server libboost-all-dev
|
||||||
|
|
||||||
|
- name: setup ccache
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
CCACHE_DIR: $GITHUB_WORKSPACE/var/ccache
|
||||||
|
run: |
|
||||||
|
cat <<EOF >> $GITHUB_ENV
|
||||||
|
CCACHE_DIR=${{ env.CCACHE_DIR }}
|
||||||
|
CCACHE_MAXSIZE=1000MB
|
||||||
|
CCACHE_SLOPPINESS=pch_defines,time_macros,include_file_mtime
|
||||||
|
CCACHE_CPP2=true
|
||||||
|
CCACHE_COMPRESS=1
|
||||||
|
CCACHE_COMPRESSLEVEL=9
|
||||||
|
CCACHE_COMPILERCHECK=content
|
||||||
|
CCACHE_LOGFILE=$CCACHE_DIR/cache.debug
|
||||||
|
CC=${{ inputs.CC }}
|
||||||
|
CXX=${{ inputs.CXX }}
|
||||||
|
EOF
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: >
|
run: >
|
||||||
@@ -68,6 +86,8 @@ jobs:
|
|||||||
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
|
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
|
||||||
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
|
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
|
||||||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
|
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
|
||||||
|
-DCMAKE_CXX_COMPILER_LAUNCHER="ccache"
|
||||||
|
-DCMAKE_C_COMPILER_LAUNCHER="ccache"
|
||||||
-S ${{ github.workspace }}
|
-S ${{ github.workspace }}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
Reference in New Issue
Block a user