1- name : rocky x86_64 build workflows
1+ name : rocky build workflows
22
33on :
44 push :
@@ -17,14 +17,28 @@ jobs:
1717 runs-on : ubuntu-24.04
1818 container :
1919 image : rockylinux/rockylinux:9.5
20- options : --platform linux/amd64
20+ options : ${{ matrix.container_options }}
21+
22+ strategy :
23+ matrix :
24+ architecture : [x86_64, arm64]
25+ container_options :
26+ - ' --platform linux/amd64'
27+ - ' --platform linux/arm64'
28+ include :
29+ - architecture : x86_64
30+ library_zip : XEngine_RockyLinux_9_x86-64.zip
31+ library_folder : XEngine_RockyLinux_9_x86-64
32+ - architecture : arm64
33+ library_zip : XEngine_RockyLinux_9_Arm64.zip
34+ library_folder : XEngine_RockyLinux_9_Arm64
2135
2236 steps :
23- # 检出您的主仓库代码
37+ # 检出您的主仓库代码
2438 - name : Checkout main repository code
2539 uses : actions/checkout@v4
2640
27- # 检出依赖的xengine仓库到指定的xengine目录
41+ # 检出依赖的xengine仓库到指定的xengine目录
2842 - name : Checkout dependency repository (xengine)
2943 uses : actions/checkout@v4
3044 with :
3953
4054 - name : install system package
4155 run : |
42- uname --machine
4356 dnf update -y
4457 dnf install gcc g++ make git jq unzip -y
4558 # 设置依赖库的环境变量
@@ -51,14 +64,14 @@ jobs:
5164 - name : install xengine library
5265 run : |
5366 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
67+ wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/${{ matrix.library_zip }}
68+ unzip ./${{ matrix.library_zip }} -d ./${{ matrix.library_folder }}
69+ cd ${{ matrix.library_folder }}
5770
5871 cp -rf ./XEngine_Include /usr/local/include
5972 find ./XEngine_Linux -name "*.so" -exec cp {} /usr/lib64 \;
6073 ldconfig
61- # 编译
74+ # 编译
6275 - name : make
6376 run : |
6477 cd XEngine_Source
7790 ./XEngine_Http2App -t
7891 ./XEngine_HttpApp -t
7992 ./XEngine_SimpleApp -t
80- ./XEngine_WebSocketApp -t
93+ ./XEngine_WebSocketApp -t
0 commit comments