Skip to content

Commit

Permalink
PR and Dev builds should be a separate file for now.
Browse files Browse the repository at this point in the history
We'll fix this in the future to make the step return the hash at a later stage.
  • Loading branch information
RevoluPowered committed Apr 11, 2024
1 parent 4f8a643 commit a55cc95
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 5 deletions.
98 changes: 98 additions & 0 deletions .github/workflows/deployment-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: PR Deployment
on:
pull_request:
paths:
- godot-engine/**
- .github/**
- mirror-godot-app/**

concurrency:
# workflow name - PR || fallback to unique run id, this happens when you're not building a PR
# this ensures all branches build properly and cancel their previous runs
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build-windows-client:
name: 🏁 Build Windows Dev PR
uses: ./.github/workflows/client-build-tool.yml
secrets:
gcp-secret: ""
cicd-token-github: ${{ secrets.GITHUB_TOKEN }}
with:
should-deploy: false
should-run-unit-tests: true
should-notify-on-failure: false
editor-binary-workflow: deployment.yml
editor-binary-name: MirrorGodotEditorWindows.exe
editor-binary-download: MirrorGodotEditorWindows.exe
editor-binary-branch: dev
editor-template-directory: ~/AppData/Roaming/Godot/export_templates/4.3.dev
template-binary-workflow: deployment.yml
template-binary-name: windows_release_x86_64.exe
template-binary-branch: themirror
export-template-file: windows_release_x86_64.exe
game-environment-cfg-name: official
game-export-preset: Windows
game-binary-name: The Mirror Dev.exe
bucket-name: no-bucket
os: "windows-latest"
# TODO: This will be dynamic in future and we can't do that immediately as we have to focus on the deployment side.
editor-download-url: https://storage.googleapis.com/mirror_native_client_builds/Engine/4309e8e8/MirrorGodotEditorWindows.exe
template-download-url: https://storage.googleapis.com/mirror_native_client_builds/Engine/4309e8e8/windows_release_x86_64.exe
build-macos-client:
name: 🍎 Build MacOS Dev PR
uses: ./.github/workflows/client-build-tool.yml
secrets:
gcp-secret: ""
cicd-token-github: ${{ secrets.GITHUB_TOKEN }}
with:
should-deploy: false
should-run-unit-tests: true
should-notify-on-failure: false
should-unzip-editor: true
should-install-timeout-macos: true
editor-binary-workflow: deployment.yml
editor-binary-download: MirrorGodotEditorMac.app.zip
editor-binary-name: MirrorGodotEditorMac.app/Contents/MacOS/Godot
editor-binary-branch: themirror
editor-template-directory: ~/Library/Application\ Support/Godot/export_templates/4.3.dev
template-binary-workflow: deployment.yml
template-binary-name: macos_template.app.zip
template-binary-branch: dev
export-template-file: macos.zip
game-environment-cfg-name: official
game-export-preset: MacOS-themirror-dev
game-binary-name: The Mirror Dev.app
bucket-name: no-bucket
os: "macos-latest"
# TODO: This will be dynamic in future and we can't do that immediately as we have to focus on the deployment side.
editor-download-url: https://storage.googleapis.com/mirror_native_client_builds/Engine/4309e8e8/MirrorGodotEditorMac.app.zip
template-download-url: https://storage.googleapis.com/mirror_native_client_builds/Engine/4309e8e8/macos_template.app.zip
build-linux-client:
name: 🐧 Build Linux Dev PR
uses: ./.github/workflows/client-build-tool.yml
secrets:
gcp-secret: ""
cicd-token-github: ${{ secrets.GITHUB_TOKEN }}
with:
should-deploy: false
should-run-unit-tests: true
should-notify-on-failure: false
editor-binary-workflow: deployment.yml
editor-binary-name: MirrorGodotEditorLinux.x86_64
editor-binary-download: MirrorGodotEditorLinux.x86_64
editor-binary-branch: dev
editor-template-directory: ~/.local/share/godot/export_templates/4.3.dev
template-binary-workflow: deployment.yml
template-binary-name: linux_release.x86_64
template-binary-branch: themirror
export-template-file: linux_release.x86_64
game-environment-cfg-name: official
game-export-preset: Linux
game-binary-name: The Mirror Dev.x86_64
bucket-name: no-bucket
os: "ubuntu-20.04"
# TODO: This will be dynamic in future and we can't do that immediately as we have to focus on the deployment side.
editor-download-url: https://storage.googleapis.com/mirror_native_client_builds/Engine/4309e8e8/MirrorGodotEditorLinux.x86_64
template-download-url: https://storage.googleapis.com/mirror_native_client_builds/Engine/4309e8e8/linux_release.x86_64
5 changes: 0 additions & 5 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ on:
push:
tags:
- 'v*'
pull_request:
paths:
- godot-engine/**
- .github/**
- mirror-godot-app/**

concurrency:
# workflow name - PR || fallback to unique run id, this happens when you're not building a PR
Expand Down

0 comments on commit a55cc95

Please sign in to comment.