Skip to content

Commit f328cf0

Browse files
committed
ci:rocky arm64 build test
1 parent 8a7c578 commit f328cf0

File tree

1 file changed

+40
-32
lines changed

1 file changed

+40
-32
lines changed

.github/workflows/rocky_Arm64_build.yml

Lines changed: 40 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -14,58 +14,66 @@ permissions:
1414

1515
jobs:
1616
build:
17-
runs-on: ubuntu-24.04
18-
env:
19-
IMAGE_NAME: rockylinux/rockylinux:9.5
20-
21-
strategy:
22-
fail-fast: false
23-
matrix:
24-
arch: [linux/arm64]
17+
runs-on: ubuntu-24.04-arm
18+
container:
19+
image: rockylinux/rockylinux:9.5
20+
options: --platform linux/arm64
2521

2622
steps:
2723
# 检出您的主仓库代码
2824
- name: Checkout main repository code
2925
uses: actions/checkout@v4
26+
27+
# 检出依赖的xengine仓库到指定的xengine目录
28+
- name: Checkout dependency repository (xengine)
29+
uses: actions/checkout@v4
30+
with:
31+
repository: libxengine/libxengine
32+
path: libxengine
3033

31-
- name: Set up QEMU
32-
uses: docker/setup-qemu-action@v3
33-
34-
- name: Build ${{ matrix.arch }}
34+
- name: sub module checkout (opensource)
35+
uses: actions/checkout@v4
36+
with:
37+
repository: libxengine/XEngine_OPenSource
38+
path: XEngine_Source/XEngine_Depend
39+
40+
- name: install system package
3541
run: |
36-
docker run --platform ${{ matrix.arch }} --rm \
37-
-v ${{ github.workspace }}:/workspace \
38-
-w /workspace ${{ env.IMAGE_NAME }} /bin/sh -c '
39-
set -e
4042
dnf update -y
41-
dnf install --allowerasing git make g++ wget curl jq unzip -y
42-
43-
git config --global --add safe.directory /workspace
44-
git submodule init
45-
git submodule update
46-
43+
dnf install gcc g++ make git jq unzip -y
44+
# 设置依赖库的环境变量
45+
- name: Set up Dependency rocky linux Environment
46+
run: |
47+
cd libxengine
48+
chmod 777 *
49+
./XEngine_LINEnv.sh -i 0
50+
- name: install xengine library
51+
run: |
4752
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
4853
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_RockyLinux_9_Arm64.zip
4954
unzip ./XEngine_RockyLinux_9_Arm64.zip -d ./XEngine_RockyLinux_9_Arm64
5055
cd XEngine_RockyLinux_9_Arm64
51-
52-
chmod 777 ./XEngine_LINEnv.sh
53-
./XEngine_LINEnv.sh -i 0
54-
56+
5557
cp -rf ./XEngine_Include /usr/local/include
5658
find ./XEngine_Linux -name "*.so" -exec cp {} /usr/lib64 \;
5759
ldconfig
58-
cd ..
59-
60+
#编译
61+
- name: make
62+
run: |
6063
cd XEngine_Source
61-
make ARCH=Arm64 RELEASE=1
64+
make
6265
make FLAGS=InstallAll
63-
make FLAGS=CleanAll
64-
cd ..
66+
make FLAGS=CleanAll
6567
68+
make RELEASE=1
69+
make FLAGS=InstallAll
70+
make FLAGS=CleanAll
71+
cd ..
72+
- name: test
73+
run: |
6674
cd XEngine_Release
6775
./XEngine_CenterApp -t
6876
./XEngine_Http2App -t
6977
./XEngine_HttpApp -t
7078
./XEngine_SimpleApp -t
71-
./XEngine_WebSocketApp -t '
79+
./XEngine_WebSocketApp -t

0 commit comments

Comments
 (0)