-
Notifications
You must be signed in to change notification settings - Fork 38
98 lines (91 loc) · 3.12 KB
/
trigger_on_push_master.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
name: Master pipeline
on:
push
# TODO: enable after testing is done!
# branches:
# - master
# schedule:
# - cron: '0 0 * * 1' # run once a week on monday midnight to prevent the cache from being cleared
concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-trigger_on_push_master
cancel-in-progress: true
jobs:
setup-build-variables:
# Fake job to define outputs which can be used in the other jobs
name: 🛠️ Setup build variables
runs-on: ubuntu-latest
steps:
- 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.9.1-4.2.2"
godot-version: "4.2.2-stable"
jvm-version: "17"
build-jvm:
name: ☕ Build Jvm
uses: ./.github/workflows/build_jvm.yml
needs:
- setup-build-variables
with:
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
jvm-version: ${{ needs.setup-build-variables.outputs['jvm-version'] }}
# build-android:
# name: 🤖 Build and Assemble Android
# uses: ./.github/workflows/build_android.yml
# needs:
# - setup-build-variables
# with:
# godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
# jvm-version: ${{ needs.setup-build-variables.outputs['jvm-version'] }}
#
# build-ios:
# name: 🍏 Build iOS
# uses: ./.github/workflows/build_ios.yml
# needs:
# - setup-build-variables
# with:
# godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
#
# build-linux:
# name: 🐧 Build Linux
# uses: ./.github/workflows/build_linux.yml
# needs:
# - setup-build-variables
# with:
# godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
#
# build-macos:
# name: 🍎 Build macOS
# uses: ./.github/workflows/build_macos.yml
# needs:
# - setup-build-variables
# with:
# godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
build-windows:
name: 🪟 Build Windows
uses: ./.github/workflows/build_windows.yml
needs:
- setup-build-variables
with:
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
# needed for benchmarks
assemble-windows:
name: 🪟 Assemble windows
uses: ./.github/workflows/assemble_windows.yml
needs:
- setup-build-variables
- build-jvm
- build-windows
with:
godot-kotlin-jvm-version: ${{ needs.setup-build-variables.outputs['godot-kotlin-jvm-version'] }}
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
benchmark-windows:
name: 📊 Benchmark windows
secrets: inherit # needed so that this sub workflow can also access github secrets for this workflow
uses: ./.github/workflows/benchmark_windows.yml
needs:
- setup-build-variables
- assemble-windows
with:
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
jvm-version: ${{ needs.setup-build-variables.outputs['jvm-version'] }}