-
Notifications
You must be signed in to change notification settings - Fork 135
40 lines (38 loc) · 991 Bytes
/
build-linux.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
name: 'Build(linux)'
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-ubuntu:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: configure
run: |
sudo apt update -y
sudo bash -x dependencies.sh
mkdir build
cd build
cmake .. -DUSE_HTTP=ON
shell: bash
- name: make
run: |
cd build
make -j
shell: bash
- name: start-metadata-server
run: |
cd mooncake-transfer-engine/example/http-metadata-server
export PATH=$PATH:/usr/local/go/bin
go mod tidy && go build -o http-metadata-server .
./http-metadata-server --addr=:8090 &
shell: bash
- name: test
run: |
cd build
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
ldconfig -v || echo "always continue"
MC_METADATA_SERVER=http://127.0.0.1:8090/metadata make test -j ARGS="-V"
shell: bash