-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (44 loc) · 1.43 KB
/
main.yaml
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
name: CI Client builder
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
- name: "Update System and install dependencies"
run: |
# update system and install dependencies
apt update
apt install -y cmake git build-essential autoconf libtool pkg-config libjsoncpp-dev libpqxx-dev libboost-all-dev
- name: "Compile gRPC"
run: |
# Compile gRPC
export MY_INSTALL_DIR=$HOME/.local
mkdir -p $MY_INSTALL_DIR
export PATH="$MY_INSTALL_DIR/bin:$PATH"
git clone --recurse-submodules -b v1.68.2 --depth 1 --shallow-submodules https://github.com/grpc/grpc
cd grpc
mkdir -p cmake/build
cd cmake/build
cmake -DgRPC_INSTALL=ON \
-DgRPC_BUILD_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX=$MY_INSTALL_DIR \
../..
make -j 2
make install
- name: "Compile client"
run: |
# Compile client
cd ../../../client
chmod +x genCppProto.sh
./genCppProto.sh
mkdir -p cmake/build
cd cmake/build
cmake ../..
make -j 2
mv client mmclient
- name: Upload binary release file
uses: actions/upload-artifact@v4
with:
name: mmclient
path: ${{ github.workspace }}/mmclient