-
Notifications
You must be signed in to change notification settings - Fork 1
206 lines (171 loc) · 6.66 KB
/
main.yaml
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
name: main
on:
push:
pull_request:
jobs:
build:
strategy:
matrix:
config:
- node-version: '18.12.0' # LTS
CODE_TEST: 'test-legacy'
PKGSET: ''
PKG: ''
- node-version: '20.9.0' # LTS
CODE_TEST: 'test-legacy'
PKGSET: ''
PKG: ''
- node-version: '20.16.0' # LTS (current)
CODE_TEST: 'test-legacy'
CODE_CHECK: 1
PKGSET: ''
PKG: ''
- node-version: '22.5.1' # Latest
CODE_TEST: 'test'
PKGSET: ''
PKG: ''
- node-version: '20.16.0' # LTS (current)
CODE_TEST: 'test-legacy'
PKGSET: '7-windows'
PKG:
- shockwave-projector-director-7.0.0-win-win
- shockwave-projector-director-7.0.2-2-win-win
- shockwave-projector-director-7.0.2-trial-win-win
- shockwave-projector-director-7.0.2-win-win
- node-version: '20.16.0' # LTS (current)
CODE_TEST: 'test-legacy'
PKGSET: '8-windows'
PKG:
- shockwave-projector-director-8.0.0-trial-win-win
- shockwave-projector-director-8.0.0-win-win
- node-version: '20.16.0' # LTS (current)
CODE_TEST: 'test-legacy'
PKGSET: '8.5-windows'
PKG:
- shockwave-projector-director-8.5.0-win-win
- shockwave-projector-director-8.5.0-trial-win-win
- shockwave-projector-director-8.5.1-win-win
- shockwave-projector-director-8.5.1-trial-win-win
- node-version: '20.16.0' # LTS (current)
CODE_TEST: 'test-legacy'
PKGSET: '9-windows'
PKG:
- shockwave-projector-director-9.0.0-win-win
- shockwave-projector-director-9.0.0-trial-win-win
- node-version: '20.16.0' # LTS (current)
CODE_TEST: 'test-legacy'
PKGSET: '10-windows'
PKG:
- shockwave-projector-director-10.0.0-mac-win
- shockwave-projector-director-10.0.0-win-win
- shockwave-projector-director-10.1.0-mac-win
- shockwave-projector-director-10.1.0-win-win
- shockwave-projector-director-10.1.1-mac-win
- shockwave-projector-director-10.1.1-win-win
- node-version: '20.16.0' # LTS (current)
CODE_TEST: 'test-legacy'
PKGSET: '11-windows'
PKG:
- shockwave-projector-director-11.0.0-mac-win
- shockwave-projector-director-11.0.0-win-win
- shockwave-projector-director-11.0.0-hotfix-1-mac-win
- shockwave-projector-director-11.0.0-hotfix-3-mac-win
- shockwave-projector-director-11.0.0-hotfix-3-win-win
- node-version: '20.16.0' # LTS (current)
CODE_TEST: 'test-legacy'
PKGSET: '11.5-windows'
PKG:
- shockwave-projector-director-11.5.0-mac-win
- shockwave-projector-director-11.5.0-win-win
- shockwave-projector-director-11.5.8-mac-win
- shockwave-projector-director-11.5.8-win-win
- shockwave-projector-director-11.5.9-mac-win
- shockwave-projector-director-11.5.9-win-win
- node-version: '20.16.0' # LTS (current)
CODE_TEST: 'test-legacy'
PKGSET: '12-windows'
PKG:
- shockwave-projector-director-12.0.0-mac-win
- shockwave-projector-director-12.0.0-win-win
- shockwave-projector-director-12.0.2-mac-win
- shockwave-projector-director-12.0.2-win-win
- node-version: '20.16.0' # LTS (current)
CODE_TEST: 'test-legacy'
PKGSET: '11-mac'
PKG:
- shockwave-projector-director-11.0.0-mac-mac-zip
- shockwave-projector-director-11.0.0-win-mac-zip
- shockwave-projector-director-11.0.0-hotfix-1-mac-mac-zip
- shockwave-projector-director-11.0.0-hotfix-3-mac-mac-zip
- shockwave-projector-director-11.0.0-hotfix-3-win-mac-zip
- node-version: '20.16.0' # LTS (current)
CODE_TEST: 'test-legacy'
PKGSET: '11.5-mac'
PKG:
- shockwave-projector-director-11.5.0-mac-mac-zip
- shockwave-projector-director-11.5.0-win-mac-zip
- shockwave-projector-director-11.5.8-mac-mac-zip
- shockwave-projector-director-11.5.8-win-mac-zip
- shockwave-projector-director-11.5.9-mac-mac-zip
- shockwave-projector-director-11.5.9-win-mac-zip
- node-version: '20.16.0' # LTS (current)
CODE_TEST: 'test-legacy'
PKGSET: '12-mac'
PKG:
- shockwave-projector-director-12.0.0-mac-mac-zip
- shockwave-projector-director-12.0.0-win-mac-zip
- shockwave-projector-director-12.0.2-mac-mac-zip
- shockwave-projector-director-12.0.2-win-mac-zip
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.config.node-version }}
- name: Dependencies
run: npm ci
- name: shockpkg Cache
uses: actions/cache@v4
if: matrix.config.PKGSET != ''
with:
key: shockpkg-${{ matrix.config.PKGSET }}
path: shockpkg
- name: shockpkg Update
run: npm run shockpkg -- update --summary
- name: shockpkg Install
run: npm run shockpkg -- install ${{ join(matrix.config.PKG, ' ') }}
if: matrix.config.PKG != ''
- name: Launchers
run: npm run launchers
- name: Build
run: npm run build
- name: Test ESM
run: npm run ${{ matrix.config.CODE_TEST }}:esm
- name: Test CJS
run: npm run ${{ matrix.config.CODE_TEST }}:cjs
- name: Lint
run: npm run lint
if: matrix.config.CODE_CHECK == 1
- name: Formatted
run: npm run formatted
if: matrix.config.CODE_CHECK == 1
publish:
if: startsWith(github.ref, 'refs/tags/')
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Node
uses: actions/setup-node@v4
with:
node-version: '20.16.0'
registry-url: https://registry.npmjs.org/
- name: Dependencies
run: npm ci
- name: Publish
run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}