Skip to content

Commit

Permalink
try at root lvl
Browse files Browse the repository at this point in the history
  • Loading branch information
Ughuuu committed Jan 2, 2024
1 parent 3cf9369 commit 0c46c0a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions .github/actions/build/action.yml → action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: GDExtension Build
description: Builds a GDExtension

inputs:
platform:
Expand All @@ -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/
Expand Down Expand Up @@ -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 }}
Expand Down
10 changes: 5 additions & 5 deletions .github/actions/build-base/action.yml → build-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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 }}
File renamed without changes.

0 comments on commit 0c46c0a

Please sign in to comment.