Skip to content

Commit 03250f8

Browse files
committed
ci:modify release name and add arm64 ubuntu
1 parent 7254384 commit 03250f8

File tree

4 files changed

+82
-8
lines changed

4 files changed

+82
-8
lines changed
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: ubuntu Arm64 build workflows
2+
3+
on:
4+
push:
5+
branches:
6+
- 'develop'
7+
paths:
8+
- 'XEngine_Source/**'
9+
- 'XEngine_Release/**'
10+
- '.github/**'
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-24.04
15+
env:
16+
IMAGE_NAME: ubuntu:24.04
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
arch: [linux/arm64]
22+
23+
steps:
24+
- name: Checkout main repository code
25+
uses: actions/checkout@v4
26+
with:
27+
ref: 'develop'
28+
29+
- name: Set up QEMU
30+
uses: docker/setup-qemu-action@v3
31+
32+
- name: Build ${{ matrix.arch }}
33+
run: |
34+
docker run --platform ${{ matrix.arch }} --rm \
35+
-v ${{ github.workspace }}:/workspace \
36+
-w /workspace ${{ env.IMAGE_NAME }} /bin/sh -c '
37+
set -e
38+
apt update -y
39+
apt install git make g++ wget curl jq unzip -y
40+
41+
git config --global --add safe.directory /workspace
42+
git submodule init
43+
git submodule update
44+
45+
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
46+
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_UBuntu_24.04_Arm64.zip
47+
unzip ./XEngine_UBuntu_24.04_Arm64.zip -d ./XEngine_UBuntu_24.04_Arm64
48+
cd XEngine_UBuntu_24.04_Arm64
49+
50+
chmod 777 ./XEngine_LINEnv.sh
51+
./XEngine_LINEnv.sh -i 0
52+
53+
cp -rf ./XEngine_Include /usr/local/include
54+
find ./XEngine_Linux -name "*.so" -exec cp {} /usr/local/lib \;
55+
ldconfig
56+
cd ..
57+
58+
cd XEngine_Source
59+
make ARCH=Arm64 RELEASE=1
60+
make FLAGS=InstallAll
61+
make FLAGS=CleanAll
62+
cd ..
63+
64+
cd XEngine_Release
65+
./XEngine_APIServiceApp -t
66+
chown -R $(id -u):$(id -g) .
67+
chmod -R a+r . '
68+
69+
- name: Upload folder as artifact with ubuntu Arm64
70+
uses: actions/upload-artifact@v4
71+
with:
72+
name: XEngine_APIServiceApp-Ubuntu_24.04_Arm64
73+
path: XEngine_Release/
74+
retention-days: 1
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ubuntu build workflows
1+
name: ubuntu x86_64 build workflows
22

33
on:
44
push:
@@ -89,14 +89,14 @@ jobs:
8989
if: matrix.os == 'ubuntu-22.04'
9090
uses: actions/upload-artifact@v4
9191
with:
92-
name: XEngine_APIServiceApp-x86_64-Ubuntu-22.04
92+
name: XEngine_APIServiceApp-x86_64_Ubuntu_22.04
9393
path: XEngine_Release/
9494
retention-days: 1
9595

9696
- name: Upload folder as artifact with ubuntu24.04
9797
if: matrix.os == 'ubuntu-24.04'
9898
uses: actions/upload-artifact@v4
9999
with:
100-
name: XEngine_APIServiceApp-x86_64-Ubuntu-24.04
100+
name: XEngine_APIServiceApp-x86_64_Ubuntu_24.04
101101
path: XEngine_Release/
102102
retention-days: 1

.github/workflows/macbuild.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ jobs:
8585
if: matrix.os == 'macos-13'
8686
uses: actions/upload-artifact@v4
8787
with:
88-
name: XEngine_APIServiceApp-x86_64-Mac
88+
name: XEngine_APIServiceApp-Mac_x86_64
8989
path: XEngine_Release/
9090
retention-days: 1
9191
- name: Upload folder as artifact with mac arm
9292
if: matrix.os == 'macos-14'
9393
uses: actions/upload-artifact@v4
9494
with:
95-
name: XEngine_APIServiceApp-Arm64-Mac
95+
name: XEngine_APIServiceApp-Mac_Arm64
9696
path: XEngine_Release/
9797
retention-days: 1

.github/workflows/msbuild.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,21 +147,21 @@ jobs:
147147
if: matrix.configuration == 'Release' && matrix.platform == 'x64'
148148
uses: actions/upload-artifact@v4
149149
with:
150-
name: XEngine_APIServiceApp-x86_32-Windows
150+
name: XEngine_APIServiceApp-Windows_x86_32
151151
path: XEngine_Release/
152152
retention-days: 1
153153

154154
- name: Upload folder as artifact with x64
155155
if: matrix.configuration == 'Release' && matrix.platform == 'x64'
156156
uses: actions/upload-artifact@v4
157157
with:
158-
name: XEngine_APIServiceApp-x86_64-Windows
158+
name: XEngine_APIServiceApp-Windows_x86_64
159159
path: XEngine_Release/
160160
retention-days: 1
161161
- name: Upload folder as artifact with ARM64
162162
if: matrix.configuration == 'Release' && matrix.platform == 'ARM64'
163163
uses: actions/upload-artifact@v4
164164
with:
165-
name: XEngine_APIServiceApp-ARM64-Windows
165+
name: XEngine_APIServiceApp-Windows_Arm64
166166
path: XEngine_Release/
167167
retention-days: 1

0 commit comments

Comments
 (0)