diff --git a/.github/actions/build/action.yml b/action.yml similarity index 96% rename from .github/actions/build/action.yml rename to action.yml index e1f5e3f..5d73c95 100644 --- a/.github/actions/build/action.yml +++ b/action.yml @@ -1,4 +1,5 @@ name: GDExtension Build +description: Builds a GDExtension inputs: platform: @@ -14,10 +15,10 @@ inputs: default: '' description: GDExtension source code location enable-double-precision-builds: - default: false + default: 'false' description: Should we also do double precision builds enable-debug-builds: - default: true + default: 'true' description: Should we also do debug builds scons-cache: default: .scons-cache/ @@ -75,7 +76,7 @@ runs: with: version: 12.2.0 - name: Build ${{ inputs.arch }} - uses: ./.github/actions/build-base + uses: ./build-base.yml with: arch: ${{ inputs.arch }} platform: ${{ inputs.platform }} diff --git a/.github/actions/build-base/action.yml b/build-base.yml similarity index 90% rename from .github/actions/build-base/action.yml rename to build-base.yml index 0b200b9..624a998 100644 --- a/.github/actions/build-base/action.yml +++ b/build-base.yml @@ -41,7 +41,7 @@ runs: ${{ github.workspace }}/${{ inputs.godot-cpp }}/${{ inputs.scons-cache }}/ key: ${{ inputs.platform }}_${{ inputs.arch }}_cache - name: Setup python and scons - uses: ./.github/actions/deps + uses: ./deps.yml # Build godot-cpp - name: Build Godot Cpp Debug Build shell: sh @@ -55,7 +55,7 @@ runs: shell: sh run: | scons target=template_debug platform=${{ inputs.platform }} arch=${{ inputs.arch }} generate_bindings=yes precision=double - if: ${{ inputs.enable-debug-builds && inputs.enable-double-precision-builds }} + if: ${{ inputs.enable-debug-builds == 'true' && inputs.enable-double-precision-builds == 'true' }} working-directory: ${{ inputs.godot-cpp }} - name: Build Godot Cpp Release Build shell: sh @@ -66,7 +66,7 @@ runs: shell: sh run: | scons target=template_release platform=${{ inputs.platform }} arch=${{ inputs.arch }} generate_bindings=yes precision=double - if: ${{ inputs.enable-double-precision-builds }} + if: ${{ inputs.enable-double-precision-builds == 'true' }} working-directory: ${{ inputs.godot-cpp }} # Build gdextension - name: Build GDExtension Debug Build @@ -81,7 +81,7 @@ runs: shell: sh run: | scons target=template_debug platform=${{ inputs.platform }} arch=${{ inputs.arch }} precision=double - if: ${{ inputs.enable-debug-builds && inputs.enable-double-precision-builds }} + if: ${{ inputs.enable-debug-builds == 'true' && inputs.enable-double-precision-builds == 'true' }} working-directory: ${{ inputs.gdextension-location }} - name: Build GDExtension Release Build shell: sh @@ -92,5 +92,5 @@ runs: shell: sh run: | scons target=template_release platform=${{ inputs.platform }} arch=${{ inputs.arch }} precision=double - if: ${{ inputs.enable-double-precision-builds }} + if: ${{ inputs.enable-double-precision-builds == 'true' }} working-directory: ${{ inputs.gdextension-location }} diff --git a/.github/actions/deps/action.yml b/deps.yml similarity index 100% rename from .github/actions/deps/action.yml rename to deps.yml