From f948c476102dd65ada56ddcaebddb8c77a3beea2 Mon Sep 17 00:00:00 2001 From: expvintl Date: Fri, 3 Jan 2025 03:41:49 +0800 Subject: [PATCH] init --- .github/workflows/build_mono.yaml | 39 +++++++++++++++++++++++++++++++ readme.md | 3 +++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/build_mono.yaml create mode 100644 readme.md diff --git a/.github/workflows/build_mono.yaml b/.github/workflows/build_mono.yaml new file mode 100644 index 0000000..af1d19d --- /dev/null +++ b/.github/workflows/build_mono.yaml @@ -0,0 +1,39 @@ +name: Windows_Mono + +on: + workflow_dispatch: + +jobs: + build_Mono: + runs-on: ubuntu-latest + steps: + - name: 设置.NET 8 + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '8.x' + - name: 🚚初始化环境🚚 + run: | + sudo apt update + sudo apt install -y python3-pip wget mingw-w64 + sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix + 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 + cd mingw + tar xvf mingw.tar.xz + python3 -m pip install scons + - name: 拉取项目 + run: | + cd ${{ github.workspace }} + git clone https://github.com/godotengine/godot + - name: 🚀构建🚀 + run: | + 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 + ls -al ./bin/ + zip -r GodotEditor.zip ./bin/* + - name: 🎉上传成品🎉 + uses: actions/upload-artifact@v3 + with: + name: GodotEditor.zip + path: ${{ github.workspace }}/godot/GodotEditor.zip + retention-days: 7 \ No newline at end of file diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..6b2bce0 --- /dev/null +++ b/readme.md @@ -0,0 +1,3 @@ +## Godot 云编译 +一键构建Godot Engine!! +基于Action构建 \ No newline at end of file