-
Notifications
You must be signed in to change notification settings - Fork 112
105 lines (102 loc) · 4.8 KB
/
deployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: Deployment
on:
push:
branches:
- "dev"
paths:
- mirror-godot-app/**
- .github/**
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:
get-or-build-engine:
name: Building Engine
uses: ./.github/workflows/engine.yml
secrets:
GCP_BUCKET_UPLOAD: ${{ secrets.GCP_BUCKET_UPLOAD }}
with:
environment: "dev"
self-hosted-runner: ${{ github.event.repository.name != 'the-mirror' }}
build-windows-client:
name: 🏁 Build Windows Dev PR
uses: ./.github/workflows/client-build-tool.yml
needs: get-or-build-engine
secrets:
GCP_DEPLOYMENT_SECRET: ${{ secrets.GCP_BUCKET_UPLOAD }}
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.beta
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: ${{ github.event.repository.name != 'the-mirror' && 'windows-mirror' || 'windows-latest' }}
editor-download-url: https://storage.googleapis.com/mirror_native_client_builds/Engine/${{needs.get-or-build-engine.outputs.commit_hash}}/MirrorGodotEditorWindows.exe
template-download-url: https://storage.googleapis.com/mirror_native_client_builds/Engine/${{needs.get-or-build-engine.outputs.commit_hash}}/windows_release_x86_64.exe
build-macos-client:
name: 🍎 Build MacOS Dev PR
uses: ./.github/workflows/client-build-tool.yml
needs: get-or-build-engine
secrets:
GCP_DEPLOYMENT_SECRET: ${{ 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.beta
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: ${{ github.event.repository.name != 'the-mirror' && 'macos-mirror' || 'macos-latest' }}
editor-download-url: https://storage.googleapis.com/mirror_native_client_builds/Engine/${{needs.get-or-build-engine.outputs.commit_hash}}/MirrorGodotEditorMac.app.zip
template-download-url: https://storage.googleapis.com/mirror_native_client_builds/Engine/${{needs.get-or-build-engine.outputs.commit_hash}}/macos_template.app.zip
build-linux-client:
name: 🐧 Build Linux Dev PR
uses: ./.github/workflows/client-build-tool.yml
needs: get-or-build-engine
secrets:
GCP_DEPLOYMENT_SECRET: ${{ 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.beta
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: ${{ github.event.repository.name != 'the-mirror' && 'linux-mirror' || 'ubuntu-22.04' }}
editor-download-url: https://storage.googleapis.com/mirror_native_client_builds/Engine/${{needs.get-or-build-engine.outputs.commit_hash}}/MirrorGodotEditorLinux.x86_64
template-download-url: https://storage.googleapis.com/mirror_native_client_builds/Engine/${{needs.get-or-build-engine.outputs.commit_hash}}/linux_release.x86_64