1- name : rocky x86_64 build workflows
1+ name : rocky build workflows
22
33on :
44 push :
@@ -14,18 +14,28 @@ permissions:
1414
1515jobs :
1616 build :
17- runs-on : ubuntu-latest
17+ runs-on : ${{ matrix.runner }}
1818 container :
1919 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+ - arch : arm64
29+ runner : ubuntu-24.04-arm
30+ platform : linux/arm64
31+ artifact : Arm64
2032
2133 steps :
22- # 检出您的主仓库代码
2334 - name : Checkout main repository code
2435 uses : actions/checkout@v4
2536 with :
2637 ref : ' develop'
2738
28- # 检出依赖的xengine仓库到指定的xengine目录
2939 - name : Checkout dependency repository (xengine)
3040 uses : actions/checkout@v4
3141 with :
@@ -37,27 +47,24 @@ jobs:
3747 with :
3848 repository : libxengine/XEngine_OPenSource
3949 path : XEngine_Source/XEngine_Depend
40-
50+
51+ - name : Set TERM variable
52+ run : echo "TERM=xterm" >> $GITHUB_ENV
53+
4154 - name : install system package
4255 run : |
4356 dnf update -y
44- dnf install gcc g++ make git jq unzip -y
45- # 设置依赖库的环境变量
46- - name : Set up Dependency rocky linux Environment
47- run : |
48- cd libxengine
49- chmod 777 *
50- ./XEngine_LINEnv.sh -i 0
57+ dnf install gcc g++ make git jq unzip wget -y
58+
5159 - name : install xengine library
52- run : |
60+ run : |
5361 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
62+ wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_RockyLinux_9_${{ matrix.artifact }} .zip
63+ unzip ./XEngine_RockyLinux_9_${{ matrix.artifact }}. zip -d ./XEngine_RockyLinux_9_${{ matrix.artifact }}
64+ cd XEngine_RockyLinux_9_${{ matrix.artifact }}
5765
58- cp -rf ./XEngine_Include /usr/local/include
59- find ./XEngine_Linux -name "*.so" -exec cp {} /usr/lib64 \;
60- ldconfig
66+ chmod 777 *
67+ ./XEngine_LINEnv.sh -i 3
6168
6269 - name : make
6370 run : |
7885 - name : Upload folder as artifact with RockyLinux
7986 uses : actions/upload-artifact@v4
8087 with :
81- name : XEngine_MQServiceApp-RockyLinux_9_x86_64
88+ name : XEngine_MQServiceApp-RockyLinux_9_${{ matrix.artifact }}
8289 path : XEngine_Release/
8390 retention-days : 1
0 commit comments