forked from defold/defold
-
Notifications
You must be signed in to change notification settings - Fork 0
134 lines (126 loc) · 5.15 KB
/
editor-only.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
name: CI - Editor Only
on:
push:
branches:
- 'DEFEDIT-*'
- 'editor-dev'
env:
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
NOTARIZATION_USERNAME: ${{ secrets.NOTARIZATION_USERNAME }}
NOTARIZATION_PASSWORD: ${{ secrets.NOTARIZATION_PASSWORD }}
NOTARIZATION_ITC_PROVIDER: ${{ secrets.NOTARIZATION_ITC_PROVIDER }}
DM_PACKAGES_URL: ${{ secrets.DM_PACKAGES_URL }}
DM_ARCHIVE_DOMAIN: ${{ secrets.DM_ARCHIVE_DOMAIN }}
DM_RELEASE_REPOSITORY: ${{ secrets.DM_RELEASE_REPOSITORY }}
GCLOUD_EDITOR_SERVICE_KEY: ${{ secrets.GCLOUD_EDITOR_SERVICE_KEY }}
MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}
MACOS_CERTIFICATE_PASS: ${{ secrets.MACOS_CERTIFICATE_PASS }}
SERVICES_GITHUB_TOKEN: ${{ secrets.SERVICES_GITHUB_TOKEN }}
DEFOLD_EDITOR_DISABLE_PERFORMANCE_TESTS: true
jobs:
build-editor:
runs-on: ubuntu-20.04
steps: [
{
name: 'Checkout',
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
},
{ name: 'Fetch tags', run: 'git fetch --depth=1 origin +refs/tags/*:refs/tags/*' },
{ name: 'Install Python', uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c, with: { python-version: 3.12} },
{ name: 'Install Java', uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9, with: { java-version: '17.0.5+8', distribution: 'temurin'} },
{ name: 'Install dependencies', run: sudo apt-get install -y libgl1-mesa-dev libglw1-mesa-dev freeglut3-dev },
{
name: 'Build editor',
run: 'ci/ci.sh build-editor'
},
{
name: 'Archive editor',
run: 'ci/ci.sh archive-editor'
}]
sign-editor-macos:
needs: [build-editor]
runs-on: macOS-14
strategy:
matrix:
platform: [x86_64-macos, arm64-macos]
steps: [
{ name: 'Checkout', uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 },
{ name: 'Install Python', uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c, with: { python-version: 3.12} },
{ name: 'Install Java', uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9, with: { java-version: '17.0.5+8', distribution: 'temurin'} },
{
name: 'Download editor',
run: 'ci/ci.sh download-editor --platform=${{ matrix.platform }}'
},
{
name: 'Install dependencies',
run: 'ci/ci.sh --keychain-cert="${{env.MACOS_CERTIFICATE}}" --keychain-cert-pass="${{env.MACOS_CERTIFICATE_PASS}}" install'
},
{
name: 'Sign editor',
run: 'ci/ci.sh sign-editor --platform=${{ matrix.platform }}'
},
{
name: 'Notarize editor',
run: 'ci/ci.sh --platform=${{ matrix.platform }} --notarization-username="${{env.NOTARIZATION_USERNAME}}" --notarization-password="${{env.NOTARIZATION_PASSWORD}}" --notarization-itc-provider="${{env.NOTARIZATION_ITC_PROVIDER}}" notarize-editor'
},
{
name: 'Archive editor',
run: 'ci/ci.sh archive-editor --platform=${{ matrix.platform }}'
}]
sign-editor-windows:
needs: [build-editor]
runs-on: ubuntu-20.04
strategy:
matrix:
platform: [x86_64-win32]
steps: [
{ name: 'Checkout', uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 },
{ name: 'Install Python', uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c, with: { python-version: 3.12} },
{ name: 'Install Java', uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9, with: { java-version: '17.0.5+8', distribution: 'temurin'} },
{
name: 'Download editor',
shell: bash,
run: 'ci/ci.sh download-editor --platform=${{ matrix.platform }}'
},
{
name: 'Install dependencies',
shell: bash,
run: 'ci/ci.sh install'
},
{
name: 'Install ext dependencies',
shell: bash,
run: 'ci/ci.sh install_ext --platform=${{ matrix.platform }}'
},
{
name: 'Sign editor',
shell: bash,
run: 'ci/ci.sh sign-editor --gcloud-service-key="${{env.GCLOUD_EDITOR_SERVICE_KEY}}" --platform=${{ matrix.platform }}'
},
{
name: 'Archive editor',
shell: bash,
run: 'ci/ci.sh archive-editor --platform=${{ matrix.platform }}'
}]
# ---- RELEASE ------------------
release:
needs: [sign-editor-macos, sign-editor-windows]
runs-on: ubuntu-20.04
steps: [
{
name: 'Checkout',
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
},
{ name: 'Fetch tags', run: 'git fetch --depth=1 origin +refs/tags/*:refs/tags/*' },
{ name: 'Install Python', uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c, with: { python-version: 3.12} },
{ name: 'Setup git user', run: 'git config --global user.email "[email protected]" && git config --global user.name "Defold Services"' },
{
name: 'Install ext dependencies', # only needed for some python dependencies (should have a separate python setup function?)
shell: bash,
run: 'ci/ci.sh install_ext'
},
{
name: 'Release',
run: 'ci/ci.sh release'
}]