-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (62 loc) · 2.02 KB
/
rockybuild.yml
File metadata and controls
72 lines (62 loc) · 2.02 KB
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
name: ubuntu build workflows
on:
push:
branches:
- 'master'
paths:
- 'XEngine_Source/**'
- 'XEngine_Release/**'
- '.github/**'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
container:
image: rockylinux/rockylinux:9
steps:
# 检出您的主仓库代码
- name: Checkout main repository code
uses: actions/checkout@v4
# 检出依赖的xengine仓库到指定的xengine目录
- name: Checkout dependency repository (xengine)
uses: actions/checkout@v4
with:
repository: libxengine/libxengine
path: libxengine
- name: sub module checkout (opensource)
run: |
git submodule init
git submodule update
# 设置依赖库的环境变量
- name: Set up Dependency rocky linux Environment
run: |
cd libxengine
chmod 777 *
sudo ./XEngine_LINEnv.sh -i 3
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_RockyLinux_9_x86-64.zip
unzip ./XEngine_RockyLinux_9_x86-64.zip -d ./XEngine_RockyLinux_9_x86-64
cd XEngine_RockyLinux_9_x86-64
sudo cp -rf ./XEngine_Include /usr/local/include
sudo find ./XEngine_Linux -name "*.so" -exec cp {} /usr/local/lib \;
sudo ldconfig
#编译
- name: make
run: |
cd XEngine_Source
make
make FLAGS=InstallAll
make FLAGS=CleanAll
make RELEASE=1
make FLAGS=InstallAll
make FLAGS=CleanAll
cd ..
- name: test
run: |
cd XEngine_Release
./XEngine_CenterApp -t
./XEngine_Http2App -t
./XEngine_HttpApp -t
./XEngine_SimpleApp -t
./XEngine_WebSocketApp -t