Skip to content

Commit 134bd8e

Browse files
committed
ci:rocky update
1 parent 6daa03d commit 134bd8e

File tree

1 file changed

+20
-23
lines changed

1 file changed

+20
-23
lines changed

.github/workflows/rocky_x86_64_build.yml

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,39 @@ name: rocky build workflows
22

33
on:
44
push:
5-
branches:
5+
branches:
66
- 'master'
77
paths:
88
- 'XEngine_Source/**'
99
- 'XEngine_Release/**'
1010
- '.github/**'
11-
11+
1212
permissions:
1313
contents: read
14-
14+
1515
jobs:
1616
build:
17-
runs-on: ubuntu-24.04
17+
runs-on: ${{ matrix.runner }}
1818
container:
1919
image: rockylinux/rockylinux:9.5
20-
options: ${{ matrix.container_options }}
21-
20+
options: --platform ${{ matrix.platform }}
2221
strategy:
2322
matrix:
24-
architecture: [x86_64, arm64]
25-
container_options:
26-
- '--platform linux/amd64'
27-
- '--platform linux/arm64'
2823
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
24+
- arch: amd64
25+
runner: ubuntu-24.04
26+
platform: linux/amd64
27+
artifact_suffix: x86-64
28+
- arch: arm64
29+
runner: ubuntu-24.04-arm # 注意:GitHub Actions 可能没有直接的 ubuntu-24.04-arm 运行器,你可能需要使用支持 ARM 的自托管运行器或选择其他支持 ARM 的 GitHub 托管运行器,例如 ubuntu-latest 并指定 ARM 架构。这里暂时保留,但请注意检查可用性。如果使用 GitHub 托管的 ARM 运行器,可能不需要指定 container.options --platform。
30+
platform: linux/arm64
31+
artifact_suffix: Arm64
3532

3633
steps:
3734
# 检出您的主仓库代码
3835
- name: Checkout main repository code
3936
uses: actions/checkout@v4
40-
37+
4138
# 检出依赖的xengine仓库到指定的xengine目录
4239
- name: Checkout dependency repository (xengine)
4340
uses: actions/checkout@v4
@@ -50,7 +47,7 @@ jobs:
5047
with:
5148
repository: libxengine/XEngine_OPenSource
5249
path: XEngine_Source/XEngine_Depend
53-
50+
5451
- name: install system package
5552
run: |
5653
dnf update -y
@@ -64,16 +61,16 @@ jobs:
6461
- name: install xengine library
6562
run: |
6663
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
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 }}
64+
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_RockyLinux_9_${{ matrix.artifact_suffix }}.zip
65+
unzip ./XEngine_RockyLinux_9_${{ matrix.artifact_suffix }}.zip -d ./XEngine_RockyLinux_9_${{ matrix.artifact_suffix }}
66+
cd XEngine_RockyLinux_9_${{ matrix.artifact_suffix }}
7067
7168
cp -rf ./XEngine_Include /usr/local/include
7269
find ./XEngine_Linux -name "*.so" -exec cp {} /usr/lib64 \;
7370
ldconfig
74-
# 编译
71+
#编译
7572
- name: make
76-
run: |
73+
run: |
7774
cd XEngine_Source
7875
make
7976
make FLAGS=InstallAll

0 commit comments

Comments
 (0)