Skip to content

Commit

Permalink
Fix template usage (#713)
Browse files Browse the repository at this point in the history
* Fix template usage
  • Loading branch information
CedNaru authored Oct 7, 2024
1 parent 53e8fee commit 33e5c85
Show file tree
Hide file tree
Showing 22 changed files with 80 additions and 24 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/assemble_export_templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
type: string
godot-version:
type: string
build-version:
type: string

concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-export_templates_assemble
Expand Down Expand Up @@ -51,7 +53,7 @@ jobs:

- name: Move linux x86_64 debug export template
shell: sh
run: mv godot.linuxbsd.template_debug.x86_64 templates/linux_debug.x86_64
run: mv godot.linuxbsd.template_debug.x86_64.jvm.${{ inputs.build-version }} templates/linux_debug.x86_64

- name: Download linux x86_64 release export template
uses: actions/download-artifact@v4
Expand All @@ -61,7 +63,7 @@ jobs:

- name: Move linux x86_64 release export template
shell: sh
run: mv godot.linuxbsd.template_release.x86_64 templates/linux_release.x86_64
run: mv godot.linuxbsd.template_release.x86_64.jvm.${{ inputs.build-version }} templates/linux_release.x86_64

- name: Download windows x86_64 debug export template
uses: actions/download-artifact@v4
Expand All @@ -71,7 +73,7 @@ jobs:

- name: Move windows x86_64 debug export template
shell: sh
run: mv godot.windows.template_debug.x86_64.exe templates/windows_debug_x86_64.exe
run: mv godot.windows.template_debug.x86_64.jvm.${{ inputs.build-version }}.exe templates/windows_debug_x86_64.exe

- name: Download windows x86_64 release export template
uses: actions/download-artifact@v4
Expand All @@ -81,7 +83,7 @@ jobs:

- name: Move windows x86_64 release export template
shell: sh
run: mv godot.windows.template_release.x86_64.exe templates/windows_release_x86_64.exe
run: mv godot.windows.template_release.x86_64.jvm.${{ inputs.build-version }}.exe templates/windows_release_x86_64.exe

- name: Download macos debug export template
uses: actions/download-artifact@v4
Expand All @@ -95,7 +97,7 @@ jobs:

- name: Create version.txt
run: |
refVersion=godot-kotlin-jvm-${{ inputs.godot-kotlin-jvm-version }}
refVersion=${{ inputs.godot-version }}jvm-${{ inputs.build-version }}
templatesVersion=${refVersion//-/.} #replace `-` with `.` in templates version
echo "$templatesVersion" > templates/version.txt
shell: bash
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/assemble_ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
type: string
godot-version:
type: string
build-version:
type: string

concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-ios_assemble
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/assemble_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
type: string
godot-version:
type: string
build-version:
type: string

concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-linux_assemble
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/assemble_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
type: string
godot-version:
type: string
build-version:
type: string

concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-macos_assemble
Expand Down Expand Up @@ -49,8 +51,8 @@ jobs:
- name: Create ${{ matrix.target }} OSX universal binary
uses: ./.github/actions/create-macos-universal-binary
with:
amd-64-binary: godot.macos.editor${{ matrix.editor-target-insert }}.x86_64
arm-64-binary: godot.macos.editor${{ matrix.editor-target-insert }}.arm64
amd-64-binary: godot.macos.editor${{ matrix.editor-target-insert }}.x86_64.jvm.${{ inputs.build-version }}
arm-64-binary: godot.macos.editor${{ matrix.editor-target-insert }}.arm64.jvm.${{ inputs.build-version }}
universal-output-binary: godot.macos.editor.${{ matrix.target }}.universal

- name: Upload ${{ matrix.target }} macos universal artifact
Expand Down Expand Up @@ -142,8 +144,8 @@ jobs:
- name: Create macos universal binary
uses: ./.github/actions/create-macos-universal-binary
with:
amd-64-binary: godot.macos.template_${{ matrix.target }}.x86_64
arm-64-binary: godot.macos.template_${{ matrix.target }}.arm64
amd-64-binary: godot.macos.template_${{ matrix.target }}.x86_64.jvm.${{ inputs.build-version }}
arm-64-binary: godot.macos.template_${{ matrix.target }}.arm64.jvm.${{ inputs.build-version }}
universal-output-binary: godot.macos.template_${{ matrix.target }}.universal

- name: Upload ${{ matrix.target }} macos universal artifact
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/assemble_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
type: string
godot-version:
type: string
build-version:
type: string

concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-windows_assemble
Expand All @@ -32,7 +34,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: editor_${{ matrix.target }}_windows_${{ matrix.arch }}
path: godot-kotlin-jvm_editor_windows_${{ matrix.arch }}_${{ matrix.target }}_${{ inputs.godot-kotlin-jvm-version }}
path: godot-kotlin-jvm_editor_windows_${{ matrix.arch }}_${{ matrix.target }}_${{ inputs.godot-kotlin-jvm-version }}.jvm.${{ inputs.build-version }}

- name: Download ${{ matrix.target }} bootstrap jar
uses: actions/download-artifact@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
type: string
jvm-version:
type: string
build-version:
type: string

concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-android_build
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Deploy docs


on:
workflow_call:

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
type: string
jvm-version:
type: string
build-version:
type: string

concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-linux_tests
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_linux_exports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
type: string
jvm-version:
type: string
build-version:
type: string

concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-linux_exports_tests
Expand Down Expand Up @@ -61,7 +63,7 @@ jobs:
run: |
chmod +x harness/tests/bin/godot.*
mkdir -p harness/tests/export
mv godot.linuxbsd.template_${{ matrix.bootstrap-target }}.x86_64 harness/tests/godot.linuxbsd.template_${{ matrix.bootstrap-target }}.x86_64
mv godot.linuxbsd.template_${{ matrix.bootstrap-target }}.x86_64.jvm.${{ inputs.build-version }} harness/tests/godot.linuxbsd.template_${{ matrix.bootstrap-target }}.x86_64
- name: Build tests project
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
type: string
jvm-version:
type: string
build-version:
type: string

concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-macos_tests
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test_macos_exports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
type: string
jvm-version:
type: string
build-version:
type: string

concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-macos_exports_tests
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
type: string
jvm-version:
type: string
build-version:
type: string

concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-windows_tests
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_windows_exports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
type: string
jvm-version:
type: string
build-version:
type: string

concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-windows_exports_tests
Expand Down Expand Up @@ -60,7 +62,7 @@ jobs:
- name: Prepare export
run: |
mkdir -p harness/tests/export
mv godot.windows.template_${{ matrix.bootstrap-target }}.x86_64.exe harness/tests/godot.windows.template_${{ matrix.bootstrap-target }}.x86_64.exe
mv godot.windows.template_${{ matrix.bootstrap-target }}.x86_64.jvm.${{ inputs.build-version }}.exe harness/tests/godot.windows.template_${{ matrix.bootstrap-target }}.x86_64.exe
- name: Build tests project
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ jobs:
- run: |
echo "Setup done"
outputs: # defined here explicitly, so it only needs to be defined here. All other workflows can just reference it
godot-kotlin-jvm-version: "0.11.0-4.3"
godot-version: "4.3-stable"
build-version: "0.11.0"
jvm-version: "17"

build-jvm:
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/trigger_on_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ jobs:
- run: |
echo "Setup done"
outputs: # defined here explicitly, so it only needs to be defined here. All other workflows can just reference it
godot-kotlin-jvm-version: "0.10.0-4.3.0"
godot-kotlin-jvm-version: "0.11.0-4.3"
godot-version: "4.3-stable"
build-version: "0.11.0"
jvm-version: "17"

build-jvm:
Expand All @@ -35,6 +36,7 @@ jobs:
with:
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
jvm-version: ${{ needs.setup-build-variables.outputs['jvm-version'] }}
build-version: ${{ needs.setup-build-variables.outputs['build-version'] }}

build-ios:
name: 🍏 Build iOS
Expand Down Expand Up @@ -78,6 +80,7 @@ jobs:
with:
godot-kotlin-jvm-version: ${{ needs.setup-build-variables.outputs['godot-kotlin-jvm-version'] }}
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
build-version: ${{ needs.setup-build-variables.outputs['build-version'] }}

assemble-ios:
name: 🍏 Assemble ios
Expand All @@ -88,6 +91,7 @@ jobs:
with:
godot-kotlin-jvm-version: ${{ needs.setup-build-variables.outputs['godot-kotlin-jvm-version'] }}
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
build-version: ${{ needs.setup-build-variables.outputs['build-version'] }}

assemble-linux:
name: 🐧 Assemble linux
Expand All @@ -99,6 +103,7 @@ jobs:
with:
godot-kotlin-jvm-version: ${{ needs.setup-build-variables.outputs['godot-kotlin-jvm-version'] }}
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
build-version: ${{ needs.setup-build-variables.outputs['build-version'] }}

assemble-windows:
name: πŸͺŸ Assemble windows
Expand All @@ -110,6 +115,7 @@ jobs:
with:
godot-kotlin-jvm-version: ${{ needs.setup-build-variables.outputs['godot-kotlin-jvm-version'] }}
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
build-version: ${{ needs.setup-build-variables.outputs['build-version'] }}

assemble-export-templates:
name: πŸ€–+🍏+🐧+🍎+πŸͺŸ Assemble export templates
Expand All @@ -124,6 +130,7 @@ jobs:
with:
godot-kotlin-jvm-version: ${{ needs.setup-build-variables.outputs['godot-kotlin-jvm-version'] }}
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
build-version: ${{ needs.setup-build-variables.outputs['build-version'] }}

test-linux:
name: 🐧 Test Linux
Expand All @@ -135,6 +142,7 @@ jobs:
with:
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
jvm-version: ${{ needs.setup-build-variables.outputs['jvm-version'] }}
build-version: ${{ needs.setup-build-variables.outputs['build-version'] }}

test-macos:
name: 🍎 Test Macos
Expand All @@ -146,6 +154,7 @@ jobs:
with:
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
jvm-version: ${{ needs.setup-build-variables.outputs['jvm-version'] }}
build-version: ${{ needs.setup-build-variables.outputs['build-version'] }}

test-windows:
name: πŸͺŸ Test Windows
Expand All @@ -157,6 +166,7 @@ jobs:
with:
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
jvm-version: ${{ needs.setup-build-variables.outputs['jvm-version'] }}
build-version: ${{ needs.setup-build-variables.outputs['build-version'] }}

test-linux-exports:
name: 🐧 Test Linux Exports
Expand All @@ -168,6 +178,7 @@ jobs:
with:
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
jvm-version: ${{ needs.setup-build-variables.outputs['jvm-version'] }}
build-version: ${{ needs.setup-build-variables.outputs['build-version'] }}

test-macos-exports:
name: 🍎 Test Macos Exports
Expand All @@ -179,6 +190,7 @@ jobs:
with:
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
jvm-version: ${{ needs.setup-build-variables.outputs['jvm-version'] }}
build-version: ${{ needs.setup-build-variables.outputs['build-version'] }}

test-windows-exports:
name: πŸͺŸ Test Windows Exports
Expand All @@ -190,3 +202,4 @@ jobs:
with:
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
jvm-version: ${{ needs.setup-build-variables.outputs['jvm-version'] }}
build-version: ${{ needs.setup-build-variables.outputs['build-version'] }}
11 changes: 9 additions & 2 deletions .github/workflows/trigger_on_push_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ jobs:
- run: |
echo "Setup done"
outputs: # defined here explicitly, so it only needs to be defined here. All other workflows can just reference it
godot-kotlin-jvm-version: "0.10.0-4.3.0"
godot-kotlin-jvm-version: "0.11.0-4.3"
godot-version: "4.3-stable"
build-version: "0.11.0"
jvm-version: "17"

build-jvm:
Expand All @@ -40,6 +41,7 @@ jobs:
with:
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
jvm-version: ${{ needs.setup-build-variables.outputs['jvm-version'] }}
build-version: ${{ needs.setup-build-variables.outputs['build-version'] }}

build-ios:
name: 🍏 Build iOS
Expand Down Expand Up @@ -83,6 +85,7 @@ jobs:
with:
godot-kotlin-jvm-version: ${{ needs.setup-build-variables.outputs['godot-kotlin-jvm-version'] }}
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
build-version: ${{ needs.setup-build-variables.outputs['build-version'] }}

assemble-ios:
name: 🍏 Assemble ios
Expand All @@ -93,6 +96,7 @@ jobs:
with:
godot-kotlin-jvm-version: ${{ needs.setup-build-variables.outputs['godot-kotlin-jvm-version'] }}
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
build-version: ${{ needs.setup-build-variables.outputs['build-version'] }}

assemble-linux:
name: 🐧 Assemble linux
Expand All @@ -104,6 +108,7 @@ jobs:
with:
godot-kotlin-jvm-version: ${{ needs.setup-build-variables.outputs['godot-kotlin-jvm-version'] }}
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
build-version: ${{ needs.setup-build-variables.outputs['build-version'] }}

assemble-windows:
name: πŸͺŸ Assemble windows
Expand All @@ -115,6 +120,7 @@ jobs:
with:
godot-kotlin-jvm-version: ${{ needs.setup-build-variables.outputs['godot-kotlin-jvm-version'] }}
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
build-version: ${{ needs.setup-build-variables.outputs['build-version'] }}

assemble-export-templates:
name: πŸ€–+🍏+🐧+🍎+πŸͺŸ Assemble export templates
Expand All @@ -128,4 +134,5 @@ jobs:
- build-windows # uploads finished export template directly
with:
godot-kotlin-jvm-version: ${{ needs.setup-build-variables.outputs['godot-kotlin-jvm-version'] }}
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
build-version: ${{ needs.setup-build-variables.outputs['build-version'] }}
Loading

0 comments on commit 33e5c85

Please sign in to comment.