Skip to content

Commit dba8506

Browse files
committed
ci:merge rocky build
1 parent 02768c6 commit dba8506

File tree

2 files changed

+21
-88
lines changed

2 files changed

+21
-88
lines changed

.github/workflows/RockyArm64_build.yml

Lines changed: 0 additions & 78 deletions
This file was deleted.

.github/workflows/RockyX86_64_build.yml renamed to .github/workflows/Rocky_build.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: rocky x86_64 build workflows
1+
name: rocky build workflows
22

33
on:
44
push:
@@ -14,18 +14,30 @@ permissions:
1414

1515
jobs:
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+
packet: x86_64
29+
- arch: arm64
30+
runner: ubuntu-24.04-arm
31+
platform: linux/arm64
32+
artifact: Arm64
33+
packet: Arm64
2034

2135
steps:
22-
# 检出您的主仓库代码
2336
- name: Checkout main repository code
2437
uses: actions/checkout@v4
2538
with:
2639
ref: 'develop'
2740

28-
# 检出依赖的xengine仓库到指定的xengine目录
2941
- name: Checkout dependency repository (xengine)
3042
uses: actions/checkout@v4
3143
with:
@@ -42,18 +54,17 @@ jobs:
4254
run: |
4355
dnf update -y
4456
dnf install gcc g++ make git jq unzip -y
45-
# 设置依赖库的环境变量
4657
- name: Set up Dependency rocky linux Environment
4758
run: |
4859
cd libxengine
4960
chmod 777 *
5061
./XEngine_LINEnv.sh -i 0
5162
- name: install xengine library
52-
run: |
63+
run: |
5364
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 }}
5768
5869
cp -rf ./XEngine_Include /usr/local/include
5970
find ./XEngine_Linux -name "*.so" -exec cp {} /usr/lib64 \;
@@ -78,6 +89,6 @@ jobs:
7889
- name: Upload folder as artifact with RockyLinux
7990
uses: actions/upload-artifact@v4
8091
with:
81-
name: XEngine_AuthorizeService-RockyLinux_9_x86_64
92+
name: XEngine_AuthorizeService-RockyLinux_9_${{ matrix.packet }}
8293
path: XEngine_Release/
8394
retention-days: 1

0 commit comments

Comments
 (0)