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 :
@@ -42,18 +52,17 @@ jobs:
4252 run : |
4353 dnf update -y
4454 dnf install gcc g++ make git jq unzip -y
45- # 设置依赖库的环境变量
4655 - name : Set up Dependency rocky linux Environment
4756 run : |
4857 cd libxengine
4958 chmod 777 *
5059 ./XEngine_LINEnv.sh -i 0
5160 - name : install xengine library
52- run : |
61+ run : |
5362 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
63+ wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_RockyLinux_9_${{ matrix.artifact }} .zip
64+ unzip ./XEngine_RockyLinux_9_${{ matrix.artifact }}. zip -d ./XEngine_RockyLinux_9_${{ matrix.artifact }}
65+ cd XEngine_RockyLinux_9_${{ matrix.artifact }}
5766
5867 cp -rf ./XEngine_Include /usr/local/include
5968 find ./XEngine_Linux -name "*.so" -exec cp {} /usr/lib64 \;
7887 - name : Upload folder as artifact with RockyLinux
7988 uses : actions/upload-artifact@v4
8089 with :
81- name : XEngine_MQServiceApp-RockyLinux_9_x86_64
90+ name : XEngine_MQServiceApp-RockyLinux_9_${{ matrix.artifact }}
8291 path : XEngine_Release/
8392 retention-days : 1
0 commit comments