Skip to content

Commit

Permalink
Updated all workflows, except windows with the new version management…
Browse files Browse the repository at this point in the history
…, handling now everything should be building with that version that is generated.
  • Loading branch information
Bioblaze committed Nov 23, 2024
1 parent 15d721f commit 8d86064
Show file tree
Hide file tree
Showing 7 changed files with 263 additions and 28 deletions.
46 changes: 43 additions & 3 deletions .github/workflows/android_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ on:
description: "Runner ID of the Parent Runner"
required: true
type: string
new_major:
description: "New Major # for Version"
required: true
type: string
new_minor:
description: "New Minor # for Version"
required: true
type: string
new_patch:
description: "New Patch # for Version"
required: true
type: string
new_version:
description: "New Version that'll be Deployed"
required: true
type: string


# Global Settings
Expand Down Expand Up @@ -137,6 +153,16 @@ jobs:
cp -r ci_cd_repo/.github/* .github/
rm -rf ci_cd_repo
- name: Update new Version Information to version.py
uses: ./.github/actions/set-repos-version
with:
file_path: ${{ github.workspace }}/version.py
external_major: ${{ inputs.new_major }}
external_minor: ${{ inputs.new_minor }}
external_patch: ${{ inputs.new_patch }}
external_status: ${{ github.event.client_payload.type || 'nightly' }}
external_sha: ${{ inputs.build_sha }}

- name: Set up Java 17
uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -204,6 +230,7 @@ jobs:
build_os: android
checksum: ${{ inputs.build_sha }}
production: ${{ github.event.client_payload.production }}
version: ${{ inputs.new_version }}



Expand Down Expand Up @@ -240,7 +267,7 @@ jobs:
name: ${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}
run_id: ${{ inputs.runner_id }}
file_url: ${{ secrets.CDN_URL }}/${{ env.DEPLOY_TYPE }}/${{ github.event.client_payload.type || 'nightly' }}${{ startsWith(matrix.target, 'template_') && '/template' || '' }}/${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}.tar.gz
version: ""
version: ${{ inputs.new_version }}
cerebro_url: ${{ secrets.CEREBRO_URL }}
cerebro_auth: ${{ secrets.BLAZIUM_AUTH }}

Expand Down Expand Up @@ -271,6 +298,7 @@ jobs:
build_os: android
checksum: ${{ inputs.build_sha }}
production: ${{ github.event.client_payload.production }}
version: ${{ inputs.new_version }}



Expand Down Expand Up @@ -307,7 +335,7 @@ jobs:
name: ${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}-meta
run_id: ${{ inputs.runner_id }}
file_url: ${{ secrets.CDN_URL }}/${{ env.DEPLOY_TYPE }}/${{ github.event.client_payload.type || 'nightly' }}${{ startsWith(matrix.target, 'template_') && '/template' || '' }}/${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}.tar.gz
version: ""
version: ${{ inputs.new_version }}
cerebro_url: ${{ secrets.CEREBRO_URL }}
cerebro_auth: ${{ secrets.BLAZIUM_AUTH }}

Expand Down Expand Up @@ -494,6 +522,18 @@ jobs:
build_os: android
checksum: ${{ inputs.build_sha }}
production: ${{ github.event.client_payload.production }}
version: ${{ inputs.new_version }}

- name: Update new Version Information to version.py
uses: ./.github/actions/set-repos-version
with:
file_path: ${{ github.workspace }}/version.py
external_major: ${{ inputs.new_major }}
external_minor: ${{ inputs.new_minor }}
external_patch: ${{ inputs.new_patch }}
external_status: ${{ github.event.client_payload.type || 'nightly' }}
external_sha: ${{ inputs.build_sha }}



- name: Set up Java 17
Expand Down Expand Up @@ -582,7 +622,7 @@ jobs:
name: ${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}
run_id: ${{ inputs.runner_id }}
file_url: ${{ secrets.CDN_URL }}/${{ env.DEPLOY_TYPE }}/${{ github.event.client_payload.type || 'nightly' }}${{ startsWith(matrix.target, 'template_') && '/template' || '' }}/${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}.tar.gz
version: ""
version: ${{ inputs.new_version }}
cerebro_url: ${{ secrets.CEREBRO_URL }}
cerebro_auth: ${{ secrets.BLAZIUM_AUTH }}

Expand Down
29 changes: 28 additions & 1 deletion .github/workflows/ios_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ on:
description: "Runner ID of the Parent Runner"
required: true
type: string
new_major:
description: "New Major # for Version"
required: true
type: string
new_minor:
description: "New Minor # for Version"
required: true
type: string
new_patch:
description: "New Patch # for Version"
required: true
type: string
new_version:
description: "New Version that'll be Deployed"
required: true
type: string

# Global Settings
env:
Expand Down Expand Up @@ -88,6 +104,16 @@ jobs:
cp -r ci_cd_repo/.github/* .github/
rm -rf ci_cd_repo
- name: Update new Version Information to version.py
uses: ./.github/actions/set-repos-version
with:
file_path: ${{ github.workspace }}/version.py
external_major: ${{ inputs.new_major }}
external_minor: ${{ inputs.new_minor }}
external_patch: ${{ inputs.new_patch }}
external_status: ${{ github.event.client_payload.type || 'nightly' }}
external_sha: ${{ inputs.build_sha }}

- name: Notify Cerebro of Build Starting
uses: ./.github/actions/cerebro-started
with:
Expand All @@ -102,6 +128,7 @@ jobs:
build_os: ios
checksum: ${{ inputs.build_sha }}
production: ${{ github.event.client_payload.production }}
version: ${{ inputs.new_version }}


# - uses: maxim-lobanov/setup-xcode@v1
Expand Down Expand Up @@ -237,7 +264,7 @@ jobs:
name: ${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}
run_id: ${{ inputs.runner_id }}
file_url: ${{ secrets.CDN_URL }}/${{ env.DEPLOY_TYPE }}/${{ github.event.client_payload.type || 'nightly' }}${{ startsWith(matrix.target, 'template_') && '/template' || '' }}/${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}.tar.gz
version: ""
version: ${{ inputs.new_version }}
cerebro_url: ${{ secrets.CEREBRO_URL }}
cerebro_auth: ${{ secrets.BLAZIUM_AUTH }}

Expand Down
42 changes: 40 additions & 2 deletions .github/workflows/linux_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ on:
description: "Runner ID of the Parent Runner"
required: true
type: string
new_major:
description: "New Major # for Version"
required: true
type: string
new_minor:
description: "New Minor # for Version"
required: true
type: string
new_patch:
description: "New Patch # for Version"
required: true
type: string
new_version:
description: "New Version that'll be Deployed"
required: true
type: string

# Global Settings
env:
Expand Down Expand Up @@ -127,6 +143,16 @@ jobs:
cp -r ci_cd_repo/.github/* .github/
rm -rf ci_cd_repo
- name: Update new Version Information to version.py
uses: ./.github/actions/set-repos-version
with:
file_path: ${{ github.workspace }}/version.py
external_major: ${{ inputs.new_major }}
external_minor: ${{ inputs.new_minor }}
external_patch: ${{ inputs.new_patch }}
external_status: ${{ github.event.client_payload.type || 'nightly' }}
external_sha: ${{ inputs.build_sha }}

- name: Notify Cerebro of Build Starting
uses: ./.github/actions/cerebro-started
with:
Expand All @@ -141,6 +167,7 @@ jobs:
build_os: linux
checksum: ${{ inputs.build_sha }}
production: ${{ github.event.client_payload.production }}
version: ${{ inputs.new_version }}

# TODO: Figure out somehow how to embed this one.
- name: Distro-specific Deps Install
Expand Down Expand Up @@ -274,7 +301,7 @@ jobs:
name: ${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}
run_id: ${{ inputs.runner_id }}
file_url: ${{ secrets.CDN_URL }}/${{ env.DEPLOY_TYPE }}/${{ github.event.client_payload.type || 'nightly' }}${{ startsWith(matrix.target, 'template_') && '/template' || '' }}/${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}.tar.gz
version: ""
version: ${{ inputs.new_version }}
cerebro_url: ${{ secrets.CEREBRO_URL }}
cerebro_auth: ${{ secrets.BLAZIUM_AUTH }}

Expand Down Expand Up @@ -383,6 +410,16 @@ jobs:
cp -r ci_cd_repo/.github/* .github/
rm -rf ci_cd_repo
- name: Update new Version Information to version.py
uses: ./.github/actions/set-repos-version
with:
file_path: ${{ github.workspace }}/version.py
external_major: ${{ inputs.new_major }}
external_minor: ${{ inputs.new_minor }}
external_patch: ${{ inputs.new_patch }}
external_status: ${{ github.event.client_payload.type || 'nightly' }}
external_sha: ${{ inputs.build_sha }}

- name: Notify Cerebro of Build Starting
uses: ./.github/actions/cerebro-started
with:
Expand All @@ -397,6 +434,7 @@ jobs:
build_os: linux
checksum: ${{ inputs.build_sha }}
production: ${{ github.event.client_payload.production }}
version: ${{ inputs.new_version }}


- name: Distro-specific Deps Install
Expand Down Expand Up @@ -531,7 +569,7 @@ jobs:
name: ${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}
run_id: ${{ inputs.runner_id }}
file_url: ${{ secrets.CDN_URL }}/${{ env.DEPLOY_TYPE }}/${{ github.event.client_payload.type || 'nightly' }}${{ startsWith(matrix.target, 'template_') && '/template' || '' }}/${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}.tar.gz
version: ""
version: ${{ inputs.new_version }}
cerebro_url: ${{ secrets.CEREBRO_URL }}
cerebro_auth: ${{ secrets.BLAZIUM_AUTH }}

Expand Down
42 changes: 40 additions & 2 deletions .github/workflows/macos_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ on:
description: "Runner ID of the Parent Runner"
required: true
type: string
new_major:
description: "New Major # for Version"
required: true
type: string
new_minor:
description: "New Minor # for Version"
required: true
type: string
new_patch:
description: "New Patch # for Version"
required: true
type: string
new_version:
description: "New Version that'll be Deployed"
required: true
type: string

# Global Settings
env:
Expand Down Expand Up @@ -113,6 +129,16 @@ jobs:
cp -r ci_cd_repo/.github/* .github/
rm -rf ci_cd_repo
- name: Update new Version Information to version.py
uses: ./.github/actions/set-repos-version
with:
file_path: ${{ github.workspace }}/version.py
external_major: ${{ inputs.new_major }}
external_minor: ${{ inputs.new_minor }}
external_patch: ${{ inputs.new_patch }}
external_status: ${{ github.event.client_payload.type || 'nightly' }}
external_sha: ${{ inputs.build_sha }}

- name: Notify Cerebro of Build Starting
uses: ./.github/actions/cerebro-started
with:
Expand All @@ -127,6 +153,7 @@ jobs:
build_os: macos
checksum: ${{ inputs.build_sha }}
production: ${{ github.event.client_payload.production }}
version: ${{ inputs.new_version }}

- name: Restore Godot build cache
uses: ./.github/actions/godot-cache-restore
Expand Down Expand Up @@ -283,7 +310,7 @@ jobs:
name: ${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}
run_id: ${{ inputs.runner_id }}
file_url: ${{ secrets.CDN_URL }}/${{ env.DEPLOY_TYPE }}/${{ github.event.client_payload.type || 'nightly' }}${{ startsWith(matrix.target, 'template_') && '/template' || '' }}/${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}.tar.gz
version: ""
version: ${{ inputs.new_version }}
cerebro_url: ${{ secrets.CEREBRO_URL }}
cerebro_auth: ${{ secrets.BLAZIUM_AUTH }}

Expand Down Expand Up @@ -356,6 +383,16 @@ jobs:
cp -r ci_cd_repo/.github/* .github/
rm -rf ci_cd_repo
- name: Update new Version Information to version.py
uses: ./.github/actions/set-repos-version
with:
file_path: ${{ github.workspace }}/version.py
external_major: ${{ inputs.new_major }}
external_minor: ${{ inputs.new_minor }}
external_patch: ${{ inputs.new_patch }}
external_status: ${{ github.event.client_payload.type || 'nightly' }}
external_sha: ${{ inputs.build_sha }}

- name: Notify Cerebro of Build Starting
uses: ./.github/actions/cerebro-started
with:
Expand All @@ -370,6 +407,7 @@ jobs:
build_os: macos
checksum: ${{ inputs.build_sha }}
production: ${{ github.event.client_payload.production }}
version: ${{ inputs.new_version }}


- name: Restore Godot build cache
Expand Down Expand Up @@ -521,7 +559,7 @@ jobs:
name: ${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}
run_id: ${{ inputs.runner_id }}
file_url: ${{ secrets.CDN_URL }}/${{ env.DEPLOY_TYPE }}/${{ github.event.client_payload.type || 'nightly' }}${{ startsWith(matrix.target, 'template_') && '/template' || '' }}/${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}.tar.gz
version: ""
version: ${{ inputs.new_version }}
cerebro_url: ${{ secrets.CEREBRO_URL }}
cerebro_auth: ${{ secrets.BLAZIUM_AUTH }}

Expand Down
31 changes: 30 additions & 1 deletion .github/workflows/mono_glue_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@ on:
description: "Runner ID of the Parent Runner"
required: true
type: string
new_major:
description: "New Major # for Version"
required: true
type: string
new_minor:
description: "New Minor # for Version"
required: true
type: string
new_patch:
description: "New Patch # for Version"
required: true
type: string
new_version:
description: "New Version that'll be Deployed"
required: true
type: string

# Global Settings
env:
# Used for the cache key. Add version suffix to force clean build.
Expand Down Expand Up @@ -74,6 +91,17 @@ jobs:
cp -r ci_cd_repo/.github/* .github/
rm -rf ci_cd_repo
- name: Update new Version Information to version.py
uses: ./.github/actions/set-repos-version
with:
file_path: ${{ github.workspace }}/version.py
external_major: ${{ steps.new_version.outputs.major }}
external_minor: ${{ steps.new_version.outputs.minor }}
external_patch: ${{ steps.new_version.outputs.patch }}
external_status: ${{ github.event.client_payload.type || 'nightly' }}
external_sha: ${{ steps.get_sha.outputs.sha }}


# Install Linux dependencies for tests
- name: Linux dependencies for tests
run: |
Expand Down Expand Up @@ -120,6 +148,7 @@ jobs:
build_os: linux
checksum: ${{ inputs.build_sha }}
production: ${{ github.event.client_payload.production }}
version: ${{ inputs.new_version }}

- name: Compilation
uses: ./.github/actions/godot-build
Expand Down Expand Up @@ -208,7 +237,7 @@ jobs:
name: ${{ env.DEPLOY_TYPE }}-${{ github.event.client_payload.type || 'nightly' }}
run_id: ${{ inputs.runner_id }}
file_url: ${{ secrets.CDN_URL }}/${{ env.DEPLOY_TYPE }}/${{ github.event.client_payload.type || 'nightly' }}/${{ env.DEPLOY_TYPE }}-${{ github.event.client_payload.type || 'nightly' }}.tar.gz
version: ""
version: ${{ inputs.new_version }}
cerebro_url: ${{ secrets.CEREBRO_URL }}
cerebro_auth: ${{ secrets.BLAZIUM_AUTH }}

Expand Down
Loading

0 comments on commit 8d86064

Please sign in to comment.