-
Notifications
You must be signed in to change notification settings - Fork 8
179 lines (159 loc) · 4.98 KB
/
bundle.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
name: Bundle
on:
push: # Choose the branch that matches the Smalltalk version below
branches:
# - squeak-trunk
- squeak-5.3
# - squeak-5.2
paths-ignore:
- '**.md' # Skip changes in documentation artifacts
pull_request: # Choose the branch that matches the Smalltalk version below
branches:
# - squeak-trunk
- squeak-5.3
# - squeak-5.2
paths-ignore:
- '**.md'
schedule:
- cron: '0 0 * * *' # Build everyday at midnight
workflow_dispatch:
jobs:
prepare-image:
strategy:
fail-fast: true
matrix:
smalltalk:
# - Squeak-trunk
# - Squeak64-trunk
- Squeak-5.3
- Squeak64-5.3
# - Squeak-5.2
# - Squeak64-5.2
# - Etoys-trunk
# - Etoys64-trunk
runs-on: windows-latest
name: 🛠 Prepare image for ${{ matrix.smalltalk }}
env:
SMALLTALK_VERSION: ${{ matrix.smalltalk }}
steps:
- uses: actions/checkout@v2
- name: Prepare image
shell: bash
run: ./prepare_image.sh
timeout-minutes: 20
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.smalltalk }}
path: |
tmp/*.sources
tmp/*.image
tmp/*.changes
- name: Export global environment
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.smalltalk }}-env
path: tmp/global-env
test-image:
needs: [prepare-image]
strategy:
fail-fast: true
matrix:
smalltalk:
# - Squeak-trunk
# - Squeak64-trunk
- Squeak-5.3
- Squeak64-5.3
# - Squeak-5.2
# - Squeak64-5.2
# - Etoys-trunk
# - Etoys64-trunk
runs-on: windows-latest
name: 🧪 Test image of ${{ matrix.smalltalk }}
env:
SMALLTALK_VERSION: ${{ matrix.smalltalk }}
steps:
- uses: actions/checkout@v2
- name: Import global environment
uses: actions/download-artifact@v2
with:
name: ${{ matrix.smalltalk }}-env
path: tmp
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: ${{ matrix.smalltalk }}
path: tmp
- name: "Set up SmalltalkCI"
# uses: hpi-swa/setup-smalltalkCI@v1
uses: marceltaeumel/setup-smalltalkCI@marceltaeumel/install-path
with:
smalltalk-image: ${{ matrix.smalltalk }}
smalltalkCI-workspace: ${{ github.workspace }}
- name: "Run tests"
continue-on-error: true
shell: bash
run: ./test_image.sh
timeout-minutes: 20
- name: Upload test results
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.smalltalk }}-tests
path: tmp/*.xml # smalltalkCI test results
prepare-bundles:
needs: [prepare-image]
strategy:
fail-fast: false # Maybe make deployment extra job?
matrix:
smalltalk:
# - Squeak-trunk
# - Squeak64-trunk
- Squeak-5.3
- Squeak64-5.3
# - Squeak-5.2
# - Squeak64-5.2
# - Etoys-trunk
# - Etoys64-trunk
runs-on: macos-11 # fixed version for xcnotary
name: 📦 Prepare bundles for ${{ matrix.smalltalk }}
env:
SMALLTALK_VERSION: ${{ matrix.smalltalk }}
SHOULD_DEPLOY: ${{ endsWith(github.ref, 'squeak-5.3') }}
SHOULD_CODESIGN: ${{ endsWith(github.ref, 'squeak-5.3') }}
# VM_RC_TAG: "202205110711" # comment out to use VM from files.squeak.org/base that fits ${{ matrix.smalltalk }}
steps:
- uses: actions/checkout@v2
- name: Import global environment
uses: actions/download-artifact@v2
with:
name: ${{ matrix.smalltalk }}-env
path: tmp
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: ${{ matrix.smalltalk }}
path: tmp
- run: ./prepare_bundles.sh
env:
CODESIGN_KEY: ${{ secrets.CODESIGN_KEY }}
CODESIGN_IV: ${{ secrets.CODESIGN_IV }}
CERT_IDENTITY: ${{ secrets.CERT_IDENTITY }}
CERT_PASSWORD: ${{ secrets.CERT_PASSWORD }}
NOTARIZATION_USER: ${{ secrets.NOTARIZATION_USER }}
NOTARIZATION_PASSWORD: ${{ secrets.NOTARIZATION_PASSWORD }}
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.smalltalk }}-bundles
path: product/*
- run: ./deploy_bundles.sh
if: env.SHOULD_DEPLOY == 'true'
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
DEPLOY_IV: ${{ secrets.DEPLOY_IV }}
SSH_PUBLIC_KEY: ${{ secrets.SSH_PUBLIC_KEY }}
PROXY_PORT: ${{ secrets.PROXY_PORT }}
PROXY_HOST: ${{ secrets.PROXY_HOST }}
PROXY_USER: ${{ secrets.PROXY_USER }}
UPSTREAM_HOST: ${{ secrets.UPSTREAM_HOST }}
UPSTREAM_USER: ${{ secrets.UPSTREAM_USER }}