File tree Expand file tree Collapse file tree 2 files changed +68
-0
lines changed
Expand file tree Collapse file tree 2 files changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ name : rocky build workflows
2+
3+ on :
4+ push :
5+ branches :
6+ - ' master'
7+ paths :
8+ - ' XEngine_Source/**'
9+ - ' XEngine_Release/**'
10+ - ' .github/**'
11+
12+ permissions :
13+ contents : read
14+
15+ jobs :
16+ build :
17+ runs-on : ubuntu-24.04
18+ container :
19+ image : rockylinux/rockylinux:9.5
20+
21+ strategy :
22+ fail-fast : false
23+ matrix :
24+ arch : [linux/arm64]
25+
26+ steps :
27+ # 检出您的主仓库代码
28+ - name : Checkout main repository code
29+ uses : actions/checkout@v4
30+
31+ - name : Set up QEMU
32+ uses : docker/setup-qemu-action@v3
33+
34+ - name : Build ${{ matrix.arch }}
35+ 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
40+ dnf update -y
41+ dnf install -y git make g++ wget curl unzip
42+
43+ git config --global --add safe.directory /workspace
44+
45+ git submodule init
46+ git submodule update
47+
48+ latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
49+ wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_RockyLinux_9_Arm64.zip
50+ unzip ./XEngine_RockyLinux_9_Arm64.zip -d ./XEngine_RockyLinux_9_Arm64
51+ cd XEngine_RockyLinux_9_Arm64
52+ cp -rf ./XEngine_Include /usr/local/include
53+ find ./XEngine_Linux -name "*.so" -exec cp {} /usr/lib64 \;
54+ ldconfig
55+ cd ..
56+
57+ cd XEngine_Source
58+ make ARCH=Arm64 RELEASE=1
59+ make FLAGS=InstallAll
60+ make FLAGS=CleanAll
61+ cd ..
62+
63+ cd XEngine_Release
64+ ./XEngine_CenterApp -t
65+ ./XEngine_Http2App -t
66+ ./XEngine_HttpApp -t
67+ ./XEngine_SimpleApp -t
68+ ./XEngine_WebSocketApp -t '
File renamed without changes.
You can’t perform that action at this time.
0 commit comments