forked from oceanbase/oceanbase
-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (51 loc) · 1.53 KB
/
compile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Compile
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
paths-ignore:
- 'docs/**'
- '.github/ISSUE_TEMPLATE/**'
- '.github/pull_request_template.md'
- 'README.md'
- 'README_CN.md'
- 'CONTRIBUTING.md'
jobs:
ubuntu-build:
runs-on: ubuntu-22.04
steps:
- name: Free Disk Space
uses: insightsengineering/disk-space-reclaimer@v1
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tools-cache: false
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true
docker-images: true
- uses: actions/checkout@v3
- name: Install ubuntu environment
shell: bash
run: |
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
sudo apt-get install -y git wget rpm rpm2cpio cpio make build-essential binutils m4 libtool-bin libncurses5
- name: Cache deps
id: cache-deps
uses: actions/cache@v3
env:
cache-name: cache-deps
with:
key: ${{ runner.os }}-build-${{ env.cache-name }}-el9.x86_64-${{ hashFiles('deps/init/oceanbase.el9.x86_64.deps') }}
path: deps/3rd
- name: Build
uses: ./.github/workflows/buildbase
with:
save_cache: ${{github.event_name == 'push'}}
os: 'ubuntu22'