1
- name : rocky x86_64 build workflows
1
+ name : rocky build workflows
2
2
3
3
on :
4
4
push :
@@ -14,18 +14,30 @@ permissions:
14
14
15
15
jobs :
16
16
build :
17
- runs-on : ubuntu-latest
17
+ runs-on : ${{ matrix.runner }}
18
18
container :
19
19
image : rockylinux/rockylinux:9.5
20
+ options : --platform ${{ matrix.platform }}
21
+ strategy :
22
+ matrix :
23
+ include :
24
+ - arch : amd64
25
+ runner : ubuntu-24.04
26
+ platform : linux/amd64
27
+ artifact : x86-64
28
+ packet : x86_64
29
+ - arch : arm64
30
+ runner : ubuntu-24.04-arm
31
+ platform : linux/arm64
32
+ artifact : Arm64
33
+ packet : Arm64
20
34
21
35
steps :
22
- # 检出您的主仓库代码
23
36
- name : Checkout main repository code
24
37
uses : actions/checkout@v4
25
38
with :
26
39
ref : ' develop'
27
40
28
- # 检出依赖的xengine仓库到指定的xengine目录
29
41
- name : Checkout dependency repository (xengine)
30
42
uses : actions/checkout@v4
31
43
with :
@@ -42,18 +54,17 @@ jobs:
42
54
run : |
43
55
dnf update -y
44
56
dnf install gcc g++ make git jq unzip -y
45
- # 设置依赖库的环境变量
46
57
- name : Set up Dependency rocky linux Environment
47
58
run : |
48
59
cd libxengine
49
60
chmod 777 *
50
61
./XEngine_LINEnv.sh -i 0
51
62
- name : install xengine library
52
- run : |
63
+ run : |
53
64
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
54
- wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_RockyLinux_9_x86-64 .zip
55
- unzip ./XEngine_RockyLinux_9_x86-64. zip -d ./XEngine_RockyLinux_9_x86-64
56
- cd XEngine_RockyLinux_9_x86-64
65
+ wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_RockyLinux_9_${{ matrix.artifact }} .zip
66
+ unzip ./XEngine_RockyLinux_9_${{ matrix.artifact }}. zip -d ./XEngine_RockyLinux_9_${{ matrix.artifact }}
67
+ cd XEngine_RockyLinux_9_${{ matrix.artifact }}
57
68
58
69
cp -rf ./XEngine_Include /usr/local/include
59
70
find ./XEngine_Linux -name "*.so" -exec cp {} /usr/lib64 \;
78
89
- name : Upload folder as artifact with RockyLinux
79
90
uses : actions/upload-artifact@v4
80
91
with :
81
- name : XEngine_AuthorizeService-RockyLinux_9_x86_64
92
+ name : XEngine_AuthorizeService-RockyLinux_9_${{ matrix.packet }}
82
93
path : XEngine_Release/
83
94
retention-days : 1
0 commit comments