Skip to content

Commit 220408b

Browse files
committed
ci:ubuntu 22.04 arm64 support
1 parent 32c7264 commit 220408b

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

.github/workflows/Ubuntu_build.yml

Lines changed: 25 additions & 2 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,7 @@ jobs:
1818
include:
1919
- os: ubuntu-22.04
2020
- os: ubuntu-24.04
21+
- os: ubuntu-22.04-arm
2122
- os: ubuntu-24.04-arm
2223
runs-on: ${{ matrix.os }}
2324

@@ -71,6 +72,21 @@ jobs:
7172
unzip ./XEngine_UBuntu_22.04_x86-64.zip -d ./XEngine_UBuntu_22.04_x86-64
7273
cd XEngine_UBuntu_22.04_x86-64
7374
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+
7490
sudo cp -rf ./XEngine_Include /usr/local/include
7591
sudo find ./XEngine_Linux -name "*.so" -exec cp {} /usr/local/lib \;
7692
sudo ldconfig
@@ -84,7 +100,7 @@ jobs:
84100
make FLAGS=CleanAll
85101
cd ..
86102
- name: make arm
87-
if: matrix.os == 'ubuntu-24.04-arm'
103+
if: matrix.os == 'ubuntu-24.04-arm' || matrix.os == 'ubuntu-22.04-arm'
88104
run: |
89105
cd XEngine_Source
90106
make ARCH=Arm64 RELEASE=1
@@ -116,4 +132,11 @@ jobs:
116132
with:
117133
name: XEngine_AuthorizeService-Ubuntu_24.04_Arm64
118134
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
141+
path: XEngine_Release/
119142
retention-days: 1

0 commit comments

Comments
 (0)