cache deps in centos7
This commit is contained in:
parent
110397e50c
commit
6448330506
14
.github/workflows/compile.yml
vendored
14
.github/workflows/compile.yml
vendored
@ -53,9 +53,21 @@ jobs:
|
||||
shell: bash
|
||||
run: yum install -y git wget rpm* cpio make glibc-devel glibc-headers binutils m4
|
||||
|
||||
- name: Cache deps
|
||||
id: cache-deps
|
||||
uses: actions/cache@v3
|
||||
env:
|
||||
cache-name: cache-deps
|
||||
with:
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('deps/init/oceanbase.el7.x86_64.deps') }}
|
||||
path: deps/3rd
|
||||
|
||||
- name: Build init
|
||||
if: steps.cache-deps.outputs.cache-hit != 'true'
|
||||
run: bash build.sh init
|
||||
|
||||
- name: Build project
|
||||
shell: bash
|
||||
run: |
|
||||
bash build.sh init
|
||||
bash build.sh debug
|
||||
cd build_debug && make -j4
|
||||
|
Loading…
x
Reference in New Issue
Block a user