Merge branch 'pr_1583'
This commit is contained in:
31
.github/workflows/buildbase/action.yml
vendored
Normal file
31
.github/workflows/buildbase/action.yml
vendored
Normal 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
|
26
.github/workflows/compile.yml
vendored
26
.github/workflows/compile.yml
vendored
@ -26,14 +26,11 @@ jobs:
|
|||||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-el7.x86_64-${{ hashFiles('deps/init/oceanbase.el7.x86_64.deps') }}
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-el7.x86_64-${{ hashFiles('deps/init/oceanbase.el7.x86_64.deps') }}
|
||||||
path: deps/3rd
|
path: deps/3rd
|
||||||
|
|
||||||
- name: Build init
|
- name: Build
|
||||||
run: bash build.sh init
|
uses: ./.github/workflows/buildbase
|
||||||
|
with:
|
||||||
- name: Build project
|
save_cache: ${{github.event_name == 'push'}}
|
||||||
shell: bash
|
os: 'centos7'
|
||||||
run: |
|
|
||||||
bash build.sh debug
|
|
||||||
cd build_debug && make -j4
|
|
||||||
|
|
||||||
ubuntu-build:
|
ubuntu-build:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
@ -56,11 +53,8 @@ jobs:
|
|||||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-el9.x86_64-${{ hashFiles('deps/init/oceanbase.el9.x86_64.deps') }}
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-el9.x86_64-${{ hashFiles('deps/init/oceanbase.el9.x86_64.deps') }}
|
||||||
path: deps/3rd
|
path: deps/3rd
|
||||||
|
|
||||||
- name: Build init
|
- name: Build
|
||||||
run: bash build.sh init
|
uses: ./.github/workflows/buildbase
|
||||||
|
with:
|
||||||
- name: Build project
|
save_cache: ${{github.event_name == 'push'}}
|
||||||
shell: bash
|
os: 'ubuntu22'
|
||||||
run: |
|
|
||||||
bash build.sh debug
|
|
||||||
cd build_debug && make -j4
|
|
||||||
|
Reference in New Issue
Block a user