Skip to content

Commit 922b61b

Browse files
authored
Merge pull request #99 from libxengine/develop
V3.18 Merge
2 parents a6c8780 + 6f739a1 commit 922b61b

File tree

67 files changed

+676
-667
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+676
-667
lines changed

.github/workflows/RockyArm64_build.yml

Lines changed: 0 additions & 78 deletions
This file was deleted.
Lines changed: 19 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,28 @@ 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+
- 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 \;
@@ -78,6 +87,6 @@ jobs:
7887
- name: Upload folder as artifact with RockyLinux
7988
uses: actions/upload-artifact@v4
8089
with:
81-
name: XEngine_AuthorizeService-RockyLinux-9-x86_64
90+
name: XEngine_AuthorizeService-RockyLinux_9_${{ matrix.artifact }}
8291
path: XEngine_Release/
8392
retention-days: 1

.github/workflows/UbuntuArm64_build.yml

Lines changed: 0 additions & 74 deletions
This file was deleted.
Lines changed: 58 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ubuntu x86_64 build workflows
1+
name: ubuntu build workflows
22

33
on:
44
push:
@@ -18,6 +18,8 @@ jobs:
1818
include:
1919
- os: ubuntu-22.04
2020
- os: ubuntu-24.04
21+
- os: ubuntu-22.04-arm
22+
- os: ubuntu-24.04-arm
2123
runs-on: ${{ matrix.os }}
2224

2325
steps:
@@ -43,6 +45,21 @@ jobs:
4345
cd libxengine
4446
chmod 777 *
4547
sudo ./XEngine_LINEnv.sh -i 3
48+
- name: Set up Dependency ubuntu24.04 ARM64 Environment
49+
if: matrix.os == 'ubuntu-24.04-arm'
50+
run: |
51+
cd libxengine
52+
chmod 777 *
53+
sudo ./XEngine_LINEnv.sh -i 0
54+
55+
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
56+
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_UBuntu_24.04_Arm64.zip
57+
unzip ./XEngine_UBuntu_24.04_Arm64.zip -d ./XEngine_UBuntu_24.04_Arm64
58+
cd XEngine_UBuntu_24.04_Arm64
59+
60+
sudo cp -rf ./XEngine_Include /usr/local/include
61+
sudo find ./XEngine_Linux -name "*.so" -exec cp {} /usr/local/lib \;
62+
sudo ldconfig
4663
- name: Set up Dependency ubuntu22.04 Environment
4764
if: matrix.os == 'ubuntu-22.04'
4865
run: |
@@ -55,18 +72,38 @@ jobs:
5572
unzip ./XEngine_UBuntu_22.04_x86-64.zip -d ./XEngine_UBuntu_22.04_x86-64
5673
cd XEngine_UBuntu_22.04_x86-64
5774
75+
sudo cp -rf ./XEngine_Include /usr/local/include
76+
sudo find ./XEngine_Linux -name "*.so" -exec cp {} /usr/local/lib \;
77+
sudo ldconfig
78+
- name: Set up Dependency ubuntu22.04 arm64 Environment
79+
if: matrix.os == 'ubuntu-22.04-arm'
80+
run: |
81+
cd libxengine
82+
chmod 777 *
83+
sudo ./XEngine_LINEnv.sh -i 0
84+
85+
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
86+
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_UBuntu_22.04_Arm64.zip
87+
unzip ./XEngine_UBuntu_22.04_Arm64.zip -d ./XEngine_UBuntu_22.04_Arm64
88+
cd XEngine_UBuntu_22.04_Arm64
89+
5890
sudo cp -rf ./XEngine_Include /usr/local/include
5991
sudo find ./XEngine_Linux -name "*.so" -exec cp {} /usr/local/lib \;
6092
sudo ldconfig
6193
62-
- name: make
94+
- name: make x86
95+
if: matrix.os == 'ubuntu-24.04' || matrix.os == 'ubuntu-22.04'
6396
run: |
6497
cd XEngine_Source
65-
make
98+
make RELEASE=1
6699
make FLAGS=InstallAll
67100
make FLAGS=CleanAll
68-
69-
make RELEASE=1
101+
cd ..
102+
- name: make arm
103+
if: matrix.os == 'ubuntu-24.04-arm' || matrix.os == 'ubuntu-22.04-arm'
104+
run: |
105+
cd XEngine_Source
106+
make ARCH=Arm64 RELEASE=1
70107
make FLAGS=InstallAll
71108
make FLAGS=CleanAll
72109
cd ..
@@ -79,13 +116,27 @@ jobs:
79116
if: matrix.os == 'ubuntu-22.04'
80117
uses: actions/upload-artifact@v4
81118
with:
82-
name: XEngine_AuthorizeService-x86_64-Ubuntu-22.04
119+
name: XEngine_AuthorizeService-Ubuntu_22.04_x86-64
83120
path: XEngine_Release/
84121
retention-days: 1
85122
- name: Upload folder as artifact with ubuntu24.04
86123
if: matrix.os == 'ubuntu-24.04'
87124
uses: actions/upload-artifact@v4
88125
with:
89-
name: XEngine_AuthorizeService-Ubuntu-24.04-x86_64
126+
name: XEngine_AuthorizeService-Ubuntu_24.04_x86-64
127+
path: XEngine_Release/
128+
retention-days: 1
129+
- name: Upload folder as artifact with ubuntu24.04 arm64
130+
if: matrix.os == 'ubuntu-24.04-arm'
131+
uses: actions/upload-artifact@v4
132+
with:
133+
name: XEngine_AuthorizeService-Ubuntu_24.04_Arm64
134+
path: XEngine_Release/
135+
retention-days: 1
136+
- name: Upload folder as artifact with ubuntu22.04 arm64
137+
if: matrix.os == 'ubuntu-22.04-arm'
138+
uses: actions/upload-artifact@v4
139+
with:
140+
name: XEngine_AuthorizeService-Ubuntu_22.04_Arm64
90141
path: XEngine_Release/
91142
retention-days: 1

0 commit comments

Comments
 (0)