forked from defold/defold
-
Notifications
You must be signed in to change notification settings - Fork 0
119 lines (110 loc) · 4.49 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
name: CI - Editor Only
on:
push:
branches:
- 'DEFEDIT-*'
- 'editor-dev'
pull_request_target:
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 }}
WINDOWS_CERTIFICATE: ${{ secrets.WINDOWS_CERTIFICATE }}
WINDOWS_CERTIFICATE_PASS: ${{ secrets.WINDOWS_CERTIFICATE_PASS }}
MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}
MACOS_CERTIFICATE_PASS: ${{ secrets.MACOS_CERTIFICATE_PASS }}
DEFOLD_EDITOR_DISABLE_PERFORMANCE_TESTS: true
jobs:
build-editor:
if: "!contains(github.event.head_commit.message, 'skip-ci')"
runs-on: ubuntu-18.04
steps: [
{ name: 'Checkout', uses: actions/checkout@v2, with: { ref: '${{env.BUILD_BRANCH}}' } },
{ name: 'Fetch tags', run: 'git fetch --depth=1 origin +refs/tags/*:refs/tags/*' },
{ name: 'Install Python', uses: actions/setup-python@v1, with: { python-version: 2.x, architecture: x64 } },
{ name: 'Install Java', uses: actions/setup-java@v1, with: { java-version: '11.0.2' } },
{ name: 'Install Leiningen', uses: DeLaGuardo/setup-clojure@master, with: { lein: 2.8.3 } },
{
name: 'Build editor',
run: 'ci/ci.sh build-editor'
},
{
name: 'Archive editor',
run: 'ci/ci.sh archive-editor'
}]
sign-editor-darwin:
if: "!contains(github.event.head_commit.message, 'skip-ci')"
needs: [build-editor]
runs-on: macOS-latest
strategy:
matrix:
platform: [x86_64-darwin]
steps: [
{ name: 'Checkout', uses: actions/checkout@v2, with: { ref: '${{env.BUILD_BRANCH}}' } },
{ name: 'Install Python', uses: actions/setup-python@v1, with: { python-version: 2.x, architecture: x64 } },
{ name: 'Install Java', uses: actions/setup-java@v1, with: { java-version: '11.0.2' } },
{
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 --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:
if: "!contains(github.event.head_commit.message, 'skip-ci')"
needs: [build-editor]
runs-on: windows-2016
strategy:
matrix:
platform: [x86_64-win32]
steps: [
{ name: 'Checkout', uses: actions/checkout@v2, with: { ref: '${{env.BUILD_BRANCH}}' } },
{ name: 'Install Python', uses: actions/setup-python@v1, with: { python-version: 2.x, architecture: x64 } },
{ name: 'Install Java', uses: actions/setup-java@v1, with: { java-version: '11.0.2' } },
{
name: 'Download editor',
run: 'ci/ci.sh download-editor --platform=${{ matrix.platform }}'
},
{
name: 'Install dependencies',
run: 'ci/ci.sh --windows-cert="${{env.WINDOWS_CERTIFICATE}}" --windows-cert-pass="${{env.WINDOWS_CERTIFICATE_PASS}}" install'
},
{
name: 'Sign editor',
run: 'ci/ci.sh sign-editor --windows-cert="${{env.WINDOWS_CERTIFICATE}}" --windows-cert-pass="${{env.WINDOWS_CERTIFICATE_PASS}}" --platform=${{ matrix.platform }}'
},
{
name: 'Archive editor',
run: 'ci/ci.sh archive-editor --platform=${{ matrix.platform }}'
}]
# ---- RELEASE ------------------
release:
if: "!contains(github.event.head_commit.message, 'skip-ci')"
needs: [sign-editor-darwin, sign-editor-windows]
runs-on: ubuntu-18.04
steps: [
{ name: 'Checkout', uses: actions/checkout@v2, with: { ref: '${{env.BUILD_BRANCH}}' } },
{ name: 'Install Python', uses: actions/setup-python@v1, with: { python-version: 2.x, architecture: x64 } },
{
name: 'Release',
run: 'ci/ci.sh release'
}]