Skip to content

Commit 132ea36

Browse files
committed
fixed:ubuntu22.04 workflows/linuxbuild.yml
1 parent 67e279b commit 132ea36

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/linuxbuild.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,29 @@ jobs:
4040
git submodule update
4141
4242
# 设置依赖库的环境变量
43-
- name: Set up Dependency Environment Variables
43+
- name: Set up Dependency ubuntu24.04 Environment
44+
if: matrix.os == 'ubuntu-24.04'
4445
run: |
4546
cd libxengine
4647
chmod 777 *
4748
sudo ./XEngine_LINEnv.sh -i 3
4849
cd ..
50+
- name: Set up Dependency ubuntu22.04 Environment
51+
if: matrix.os == 'ubuntu-22.04'
52+
run: |
53+
cd libxengine
54+
chmod 777 *
55+
sudo ./XEngine_LINEnv.sh -i 0
56+
57+
https://github.com/libxengine/libxengine/releases/download/V9.2.0.1001RC/XEngine_UBuntu_22.04_x86-64.zip
58+
59+
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
60+
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_UBuntu_22.04_x86-64.zip
61+
unzip ./XEngine_UBuntu_22.04_x86-64.zip -d ./XEngine_UBuntu_22.04_x86-64
62+
cd XEngine_UBuntu_22.04_x86-64
63+
64+
sudo cp -rf ./XEngine_Include /usr/local/include
65+
sudo find ./XEngine_Linux -name "*.so" -exec cp {} /usr/local/lib \;
4966
#编译
5067
- name: make
5168
run: |

0 commit comments

Comments
 (0)