浏览代码

[godot] Add self-hosted macOS runner for debugging GH workflow.

Mario Zechner 2 年之前
父节点
当前提交
9b7ee427db
共有 1 个文件被更改,包括 26 次插入0 次删除
  1. 26 0
      .github/workflows/spine-godot-v4.yml

+ 26 - 0
.github/workflows/spine-godot-v4.yml

@@ -114,6 +114,32 @@ jobs:
           name: ${{ format('{0}-{1}{2}.zip', 'godot-editor-macos', env.GODOT_TAG, env.GODOT_MONO_UPLOAD_SUFFIX) }}
           name: ${{ format('{0}-{1}{2}.zip', 'godot-editor-macos', env.GODOT_TAG, env.GODOT_MONO_UPLOAD_SUFFIX) }}
           path: spine-godot/godot/bin/godot-editor-macos.zip
           path: spine-godot/godot/bin/godot-editor-macos.zip
 
 
+  godot-editor-macos-self-hosted:
+    runs-on: Marios-MacBook-Pro
+    steps:
+      - uses: actions/checkout@v3
+        with:
+          fetch-depth: 0
+
+      - name: Setup python and scons
+        uses: ./.github/actions/setup-godot-deps
+
+      - name: Build Godot artifact
+        shell: bash
+        run: |
+          ./spine-godot/build/install-macos-vulkan-sdk.sh
+          ./spine-godot/build/setup.sh $GODOT_TAG false $GODOT_MONO
+          ./spine-godot/build/build-v4.sh $GODOT_MONO
+          pushd spine-godot/godot/bin
+          zip -r godot-editor-macos.zip Godot.app
+          popd
+
+      - name: Upload artifacts
+        uses: actions/upload-artifact@v3
+        with:
+          name: ${{ format('{0}-{1}{2}.zip', 'godot-editor-macos', env.GODOT_TAG, env.GODOT_MONO_UPLOAD_SUFFIX) }}
+          path: spine-godot/godot/bin/godot-editor-macos.zip
+
   godot-template-ios:
   godot-template-ios:
     runs-on: macos-latest
     runs-on: macos-latest
     if: ${{ inputs.godot_mono == false }}
     if: ${{ inputs.godot_mono == false }}