fix compile cache

This commit is contained in:
wangyunlai
2023-09-18 14:00:51 +08:00
committed by GitHub
parent b505b83062
commit 259f10dff7

View File

@ -39,31 +39,11 @@ jobs:
path: deps/3rd
enableCrossOsArchive: true
- name: Cache build
id: cache-build
uses: actions/cache@v3
env:
cache-name: cache-build
with:
key: ${{ runner.os }}-${{ env.cache-name }}-${{ matrix.image }}-el7.x86_64-${{ github.ref_name }}
path: ~/.ccache
enableCrossOsArchive: false
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-${{ matrix.image }}-el7.x86_64
- name: Build init
if: steps.cache-deps.outputs.cache-hit != 'true'
run: bash build.sh init
- name: Build project
shell: bash
run: |
rm -rf build_debug
export CCACHE_LOGFILE=$PWD/ccache.log
deps/3rd/usr/local/oceanbase/devtools/bin/ccache -z
bash build.sh debug -DOB_USE_CCACHE=ON
cd build_debug && make -j4 && cd -
deps/3rd/usr/local/oceanbase/devtools/bin/ccache -s
- if: ${{ runner.debug }}
run: cat $PWD/ccache.log
bash build.sh debug
cd build_debug && make -j4