-
Notifications
You must be signed in to change notification settings - Fork 166
80 lines (77 loc) · 2.83 KB
/
juno_server_bin_build.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Binary Build
on:
push:
branches:
- main
- dev
paths-ignore:
- ".github/workflows/**"
pull_request:
branches:
- main
paths-ignore:
- ".github/workflows/**"
workflow_dispatch:
jobs:
build-deploy-test:
strategy:
matrix:
os: [ubuntu-latest]
go_version: ["^1.18.2"]
runs-on: ${{ matrix.os }}
steps:
- name: Get code
uses: actions/checkout@v3.5.2
- name: Install golang
uses: actions/setup-go@v4.0.1
with:
go-version: "${{ matrix.go_version }}"
- name: Install Build dependencies
run: |
sudo apt-get update -y
sudo apt-get install build-essential daemontools libgflags-dev
sudo apt install openssl -y
echo "***********************************************************"
echo "Dependencies version"
echo "********************==========*****************************"
echo "GCC Version:" `gcc --version`
echo "G++ Version:" `g++ --version`
echo "Openssl Version:" `openssl version`
echo "Check Multilog:" `which multilog`
echo "********************==========*****************************"
- name: Build
id: run-build
run: |
echo "***********************************************************"
echo "Deploy Juno Binaries"
echo "********************==========*****************************"
export BUILDTOP=`pwd`
binary_build/build.sh
- name: Deploy
run: |
echo "***********************************************************"
echo "Deploy Juno Services"
echo "********************==========*****************************"
export BUILDTOP=`pwd`
export JUNO_BUILD_DIR=$BUILDTOP/release-binary/code-build
script/deploy.sh
- name: Validate
run: |
echo "***********************************************************"
echo "Validate Juno Services"
echo "********************==========*****************************"
ps -eaf | grep juno
- name: Test
run: |
echo "***********************************************************"
echo "Run Functional Tests"
echo "********************==========*****************************"
export BUILDTOP=`pwd`
cd $BUILDTOP/script/test/functest
$BUILDTOP/script/test/functest/configsetup.sh
$BUILDTOP/release-binary/tool/go/bin/go test -v -config=config.toml
echo "***********************************************************"
echo "Run Unit Tests"
echo "********************==========*****************************"
cd $BUILDTOP/script/test/unittest
$BUILDTOP/release-binary/tool/go/bin/go test -v