-
Notifications
You must be signed in to change notification settings - Fork 84
118 lines (106 loc) · 3.24 KB
/
runner.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
106
107
108
109
110
111
112
113
114
115
116
117
118
name: 🔗 GHA
# Only run pipeline on open pull_requests and master + versions + releases
# we don't need it on every push and some parameters are not available for push only
on:
pull_request:
push:
branches:
- "master"
- "3.4"
- "4.1"
release:
types: [published]
concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-runner
cancel-in-progress: true
jobs:
get-version:
name: 🆚 Get godot version
uses: ./.github/workflows/get_version.yml
static-checks:
name: 📊 Static checks
uses: ./.github/workflows/static_checks.yml
needs: get-version
with:
version: ${{ needs.get-version.outputs.version }}
android-build:
name: 🤖 Android
needs: [static-checks, get-version]
uses: ./.github/workflows/android_builds.yml
with:
version: ${{ needs.get-version.outputs.version }}
ios-build:
name: 🍏 iOS
needs: [static-checks, get-version]
uses: ./.github/workflows/ios_builds.yml
with:
version: ${{ needs.get-version.outputs.version }}
linux-build:
name: 🐧 Linux
needs: [static-checks, get-version]
uses: ./.github/workflows/linux_builds.yml
with:
version: ${{ needs.get-version.outputs.version }}
macos-build:
name: 🍎 macOS
needs: [static-checks, get-version]
uses: ./.github/workflows/macos_builds.yml
with:
version: ${{ needs.get-version.outputs.version }}
windows-build:
name: 🏁 Windows
needs: [static-checks, get-version]
uses: ./.github/workflows/windows_builds.yml
with:
version: ${{ needs.get-version.outputs.version }}
web-build:
name: 🌐 Web
needs: [static-checks, get-version]
uses: ./.github/workflows/web_builds.yml
with:
version: ${{ needs.get-version.outputs.version }}
checks-done:
if: ${{ always() }}
name: ✅ Check builds
runs-on: ubuntu-latest
steps:
- name: 🎉 Checks done
run: |
resultWebBuild="${{ needs.web-build.result }}"
resultWindowsBuild="${{ needs.windows-build.result }}"
resultMacosBuild="${{ needs.macos-build.result }}"
resultLinuxBuild="${{ needs.linux-build.result }}"
resultIosBuild="${{ needs.ios-build.result }}"
resultAndroidBuild="${{ needs.android-build.result }}"
if [[
$resultWebBuild == "success" &&
$resultWindowsBuild == "success" &&
$resultMacosBuild == "success" &&
$resultLinuxBuild == "success" &&
$resultIosBuild == "success" &&
$resultAndroidBuild == "success"
]];
then
echo "🎉 All builds were successful."
exit 0
else
echo "😥 Some builds were failing."
exit 1
fi
needs:
[
web-build,
windows-build,
macos-build,
linux-build,
ios-build,
android-build
]
release:
name: 🦅 Release
if: github.event_name == 'release' && github.event.action == 'published'
needs: [checks-done, get-version]
uses: ./.github/workflows/release_builds.yml
secrets: inherit
with:
version: ${{ needs.get-version.outputs.version }}