1- name : ubuntu x86_64 build workflows
1+ name : ubuntu build workflows
22
33on :
44 push :
1919 include :
2020 - os : ubuntu-22.04
2121 - os : ubuntu-24.04
22+ - os : ubuntu-22.04-arm
23+ - os : ubuntu-24.04-arm
2224 runs-on : ${{ matrix.os }}
2325
2426 steps :
4648 sudo apt upgrade -y
4749 sudo apt install liblua5.4-dev libopencv-dev libopencv-contrib-dev libqrencode-dev libleptonica-dev libtesseract-dev -y
4850
49- # 设置依赖库的环境变量
51+ - name : Set TERM variable
52+ run : echo "TERM=xterm" >> $GITHUB_ENV
53+
5054 - name : Set up Dependency ubuntu24.04 Environment
5155 if : matrix.os == 'ubuntu-24.04'
5256 run : |
@@ -56,19 +60,34 @@ jobs:
5660 - name : Set up Dependency ubuntu22.04 Environment
5761 if : matrix.os == 'ubuntu-22.04'
5862 run : |
59- cd libxengine
60- chmod 777 *
61- sudo ./XEngine_LINEnv.sh -i 0
62-
6363 latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
6464 wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_UBuntu_22.04_x86-64.zip
6565 unzip ./XEngine_UBuntu_22.04_x86-64.zip -d ./XEngine_UBuntu_22.04_x86-64
6666 cd XEngine_UBuntu_22.04_x86-64
6767
68- sudo cp -rf ./XEngine_Include /usr/local/include
69- sudo find ./XEngine_Linux -name "*.so" -exec cp {} /usr/local/lib \;
70- sudo ldconfig
71- # 编译
68+ chmod 777 *
69+ sudo ./XEngine_LINEnv.sh -i 3
70+ - name : Set up Dependency ubuntu22.04 Environment
71+ if : matrix.os == 'ubuntu-22.04-arm'
72+ run : |
73+ latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
74+ wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_UBuntu_22.04_Arm64.zip
75+ unzip ./XEngine_UBuntu_22.04_Arm64.zip -d ./XEngine_UBuntu_22.04_Arm64
76+ cd XEngine_UBuntu_22.04_Arm64
77+
78+ chmod 777 *
79+ sudo ./XEngine_LINEnv.sh -i 3
80+ - name : Set up Dependency ubuntu22.04 Environment
81+ if : matrix.os == 'ubuntu-24.04-arm'
82+ run : |
83+ latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
84+ wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_UBuntu_24.04_Arm64.zip
85+ unzip ./XEngine_UBuntu_24.04_Arm64.zip -d ./XEngine_UBuntu_24.04_Arm64
86+ cd XEngine_UBuntu_24.04_Arm64
87+
88+ chmod 777 *
89+ sudo ./XEngine_LINEnv.sh -i 3
90+
7291 - name : make
7392 run : |
7493 cd XEngine_Source
@@ -94,11 +113,24 @@ jobs:
94113 name : XEngine_APIServiceApp-Ubuntu_22.04_x86_64
95114 path : XEngine_Release/
96115 retention-days : 1
97-
98116 - name : Upload folder as artifact with ubuntu24.04
99117 if : matrix.os == 'ubuntu-24.04'
100118 uses : actions/upload-artifact@v4
101119 with :
102120 name : XEngine_APIServiceApp-Ubuntu_24.04_x86_64
103121 path : XEngine_Release/
122+ retention-days : 1
123+ - name : Upload folder as artifact with ubuntu22.04-arm
124+ if : matrix.os == 'ubuntu-22.04-arm'
125+ uses : actions/upload-artifact@v4
126+ with :
127+ name : XEngine_APIServiceApp-Ubuntu_22.04_Arm64
128+ path : XEngine_Release/
129+ retention-days : 1
130+ - name : Upload folder as artifact with ubuntu24.04-arm
131+ if : matrix.os == 'ubuntu-24.04-arm'
132+ uses : actions/upload-artifact@v4
133+ with :
134+ name : XEngine_APIServiceApp-Ubuntu_24.04_Arm64
135+ path : XEngine_Release/
104136 retention-days : 1
0 commit comments