Pārlūkot izejas kodu

CI: Use correct godot-cpp branch

(cherry picked from commit 70bace7482e00e856795b149afe1f3d9ba125f6f)
David Snopek 6 mēneši atpakaļ
vecāks
revīzija
edc357633f

+ 5 - 4
.github/actions/godot-cpp-build/action.yml

@@ -1,9 +1,6 @@
 name: Build godot-cpp
 name: Build godot-cpp
 description: Build godot-cpp with the provided options.
 description: Build godot-cpp with the provided options.
 
 
-env:
-  GODOT_CPP_BRANCH: 4.4
-
 inputs:
 inputs:
   bin:
   bin:
     description: Path to the Godot binary.
     description: Path to the Godot binary.
@@ -16,6 +13,10 @@ inputs:
     description: The SCons cache path.
     description: The SCons cache path.
     default: ${{ github.workspace }}/.scons_cache/
     default: ${{ github.workspace }}/.scons_cache/
     type: string
     type: string
+  godot-cpp-branch:
+    description: The godot-cpp branch.
+    default: master
+    type: string
 
 
 runs:
 runs:
   using: composite
   using: composite
@@ -25,7 +26,7 @@ runs:
       with:
       with:
         submodules: recursive
         submodules: recursive
         repository: godotengine/godot-cpp
         repository: godotengine/godot-cpp
-        ref: ${{ env.GODOT_CPP_BRANCH }}
+        ref: ${{ inputs.godot-cpp-branch }}
         path: godot-cpp
         path: godot-cpp
 
 
     - name: Extract API
     - name: Extract API

+ 2 - 0
.github/workflows/linux_builds.yml

@@ -6,6 +6,7 @@ on:
 env:
 env:
   # Used for the cache key. Add version suffix to force clean build.
   # Used for the cache key. Add version suffix to force clean build.
   GODOT_BASE_BRANCH: 4.4
   GODOT_BASE_BRANCH: 4.4
+  GODOT_CPP_BRANCH: 4.4
   SCONSFLAGS: verbose=yes warnings=extra werror=yes module_text_server_fb_enabled=yes strict_checks=yes
   SCONSFLAGS: verbose=yes warnings=extra werror=yes module_text_server_fb_enabled=yes strict_checks=yes
   DOTNET_NOLOGO: true
   DOTNET_NOLOGO: true
   DOTNET_CLI_TELEMETRY_OPTOUT: true
   DOTNET_CLI_TELEMETRY_OPTOUT: true
@@ -174,6 +175,7 @@ jobs:
         with:
         with:
           bin: ${{ matrix.bin }}
           bin: ${{ matrix.bin }}
           scons-flags: target=template_debug dev_build=yes verbose=yes
           scons-flags: target=template_debug dev_build=yes verbose=yes
+          godot-cpp-branch: ${{ env.GODOT_CPP_BRANCH }}
 
 
       - name: Save Godot build cache
       - name: Save Godot build cache
         uses: ./.github/actions/godot-cache-save
         uses: ./.github/actions/godot-cache-save