Merge branch 'pr_1583'

This commit is contained in:
ob-robot 2023-10-08 05:07:49 +00:00
commit a0e1f9028a
2 changed files with 44 additions and 19 deletions

31
.github/workflows/buildbase/action.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: "Build base"
inputs:
save_cache:
description: 'whether to save ccache to github action cache'
required: true
os:
description: 'which runner os to run this build action'
required: true
runs:
using: "composite"
steps:
- name: Build init
shell: bash
run: |
bash build.sh init
echo "$GITHUB_WORKSPACE/deps/3rd/usr/local/oceanbase/devtools/bin" >> $GITHUB_PATH
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
max-size: 10G
save: ${{inputs.save_cache}}
key: ${{inputs.os}}
- name: Build project
shell: bash
run: |
bash build.sh debug -DOB_USE_CCACHE=ON
cd build_debug && make -j4

View File

@ -25,16 +25,13 @@ jobs:
with:
key: ${{ runner.os }}-build-${{ env.cache-name }}-el7.x86_64-${{ hashFiles('deps/init/oceanbase.el7.x86_64.deps') }}
path: deps/3rd
- name: Build init
run: bash build.sh init
- name: Build project
shell: bash
run: |
bash build.sh debug
cd build_debug && make -j4
- name: Build
uses: ./.github/workflows/buildbase
with:
save_cache: ${{github.event_name == 'push'}}
os: 'centos7'
ubuntu-build:
runs-on: ubuntu-22.04
steps:
@ -55,12 +52,9 @@ jobs:
with:
key: ${{ runner.os }}-build-${{ env.cache-name }}-el9.x86_64-${{ hashFiles('deps/init/oceanbase.el9.x86_64.deps') }}
path: deps/3rd
- name: Build init
run: bash build.sh init
- name: Build project
shell: bash
run: |
bash build.sh debug
cd build_debug && make -j4
- name: Build
uses: ./.github/workflows/buildbase
with:
save_cache: ${{github.event_name == 'push'}}
os: 'ubuntu22'