取消优化加速编译

This commit is contained in:
2025-01-30 20:23:39 +08:00
parent fda05079a0
commit 06b95d2a97

View File

@ -13,26 +13,26 @@ jobs:
dotnet-version: '8.x' dotnet-version: '8.x'
- name: 🚚初始化环境🚚 - name: 🚚初始化环境🚚
run: | run: |
sudo apt update sudo apt-get install -y python3-pip wget mingw-w64 wine-stable
sudo apt install -y python3-pip wget mingw-w64 wine-stable
sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
mkdir mingw mkdir mingw
wget https://github.com/mstorsjo/llvm-mingw/releases/download/20241217/llvm-mingw-20241217-ucrt-ubuntu-20.04-x86_64.tar.xz -O mingw/mingw.tar.xz wget https://github.com/mstorsjo/llvm-mingw/releases/download/20241217/llvm-mingw-20241217-ucrt-ubuntu-20.04-x86_64.tar.xz -O mingw/mingw.tar.xz
cd mingw cd mingw
tar xvf mingw.tar.xz tar xvf mingw.tar.xz
python3 -m pip install scons python3 -m pip install scons
- name: 拉取项目 - name: 拉取项目
run: | run: |
cd ${{ github.workspace }} cd ${{ github.workspace }}
git clone https://github.com/godotengine/godot git clone https://github.com/godotengine/godot
- name: 🚀构建🚀 - name: 🚀构建🚀
run: | run: |
cd ${{ github.workspace }}/godot cd ${{ github.workspace }}/godot
MINGW_PREFIX=${{ github.workspace }}/mingw/llvm-mingw-20241217-ucrt-ubuntu-20.04-x86_64 scons platform=windows target=editor arch=x86_64 use_mingw=yes use_llvm=yes module_mono_enabled=yes production=yes MINGW_PREFIX=${{ github.workspace }}/mingw/llvm-mingw-20241217-ucrt-ubuntu-20.04-x86_64 scons platform=windows target=editor arch=x86_64 use_mingw=yes use_llvm=yes module_mono_enabled=yes
ls -al ./bin/ ls -al ./bin/
wine ${{ github.workspace }}/godot/bin/godot.windows.editor.x86_64.llvm.mono.exe --headless --generate-mono-glue modules/mono/glue wine ${{ github.workspace }}/godot/bin/godot.windows.editor.x86_64.llvm.mono.exe --headless --generate-mono-glue modules/mono/glue
./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin --godot-platform=windows ./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin --godot-platform=windows
zip -r GodotEditor.zip ./bin/* cd ./bin/
zip -r ../GodotEditor.zip ./*
- name: 🎉上传成品🎉 - name: 🎉上传成品🎉
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with: