1
1
name : antlr4
2
2
3
+ concurrency :
4
+ group : ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
5
+ cancel-in-progress : true
6
+
3
7
on :
4
8
push :
5
9
branches : [ master, dev, hostedci ]
@@ -14,16 +18,16 @@ jobs:
14
18
fail-fast : false
15
19
matrix :
16
20
os : [
17
- macos-latest ,
18
- ubuntu-latest ,
19
- windows-latest
21
+ macos-11 ,
22
+ ubuntu-20.04 ,
23
+ windows-2022
20
24
]
21
25
compiler : [ clang, gcc ]
22
26
exclude :
23
- - os : windows-latest
27
+ - os : windows-2022
24
28
compiler : gcc
25
29
include :
26
- - os : windows-latest
30
+ - os : windows-2022
27
31
compiler : cl
28
32
29
33
steps :
@@ -46,11 +50,11 @@ jobs:
46
50
cygwin : 0
47
51
48
52
- name : Check out code
49
- uses : actions/checkout@v2
53
+ uses : actions/checkout@v3
50
54
51
55
- name : Use ccache
52
56
if : startswith(matrix.os, 'macos') || startswith(matrix.os, 'ubuntu')
53
- uses : hendrikmuhs/ccache-action@v1
57
+ uses : hendrikmuhs/ccache-action@v1.2
54
58
with :
55
59
key : ${{ matrix.os }}-${{ matrix.compiler }}
56
60
@@ -138,7 +142,7 @@ jobs:
138
142
139
143
- name : Archive artifacts
140
144
if : always()
141
- uses : actions/upload-artifact@v2
145
+ uses : actions/upload-artifact@v3
142
146
with :
143
147
name : antlr_${{ matrix.os }}_${{ matrix.compiler }}
144
148
path : antlr_${{ matrix.os }}_${{ matrix.compiler }}.tgz
@@ -151,9 +155,9 @@ jobs:
151
155
fail-fast : false
152
156
matrix :
153
157
os : [
154
- macos-latest ,
155
- ubuntu-latest ,
156
- windows-latest
158
+ macos-11 ,
159
+ ubuntu-20.04 ,
160
+ windows-2022
157
161
]
158
162
target : [
159
163
tool,
@@ -169,7 +173,7 @@ jobs:
169
173
swift,
170
174
]
171
175
exclude :
172
- - os : windows-latest
176
+ - os : windows-2022
173
177
target : swift
174
178
175
179
steps :
@@ -178,11 +182,11 @@ jobs:
178
182
# dependencies, for instance, the setup-java actually parses
179
183
# **/pom.xml files to decide what to cache.
180
184
- name : Check out code
181
- uses : actions/checkout@v2
185
+ uses : actions/checkout@v3
182
186
183
187
- name : Checkout antlr PHP runtime
184
188
if : matrix.target == 'php'
185
- uses : actions/checkout@v2
189
+ uses : actions/checkout@v3
186
190
with :
187
191
repository : antlr/antlr-php-runtime
188
192
path : runtime/PHP
@@ -215,7 +219,7 @@ jobs:
215
219
216
220
- name : Set up Maven
217
221
if : steps.setup-java.outputs.cache-hit != 'true'
218
- uses : stCarolas/setup-maven@v4.4
222
+ uses : stCarolas/setup-maven@v4.5
219
223
with :
220
224
maven-version : 3.8.5
221
225
@@ -239,13 +243,13 @@ jobs:
239
243
240
244
- name : Set up Node 14
241
245
if : matrix.target == 'javascript'
242
- uses : actions/setup-node@v3
246
+ uses : actions/setup-node@v3.5.1
243
247
with :
244
248
node-version : ' 14'
245
249
246
250
- name : Setup Dotnet
247
251
if : matrix.target == 'csharp'
248
- uses : actions/setup-dotnet@v2
252
+ uses : actions/setup-dotnet@v3.0.3
249
253
with :
250
254
dotnet-version : ' 6.0.x'
251
255
@@ -257,27 +261,27 @@ jobs:
257
261
258
262
- name : Setup Go 1.19
259
263
if : matrix.target == 'go'
260
- uses : actions/setup-go@v3
264
+ uses : actions/setup-go@v3.3.1
261
265
with :
262
266
go-version : ' ^1.19'
263
267
264
268
- name : Setup PHP 8.2
265
269
if : matrix.target == 'php'
266
- uses : shivammathur/setup-php@v2
270
+ uses : shivammathur/setup-php@2.22.0
267
271
with :
268
272
php-version : ' 8.2'
269
273
extensions : mbstring
270
274
tools : composer
271
275
272
276
- name : Setup Swift
273
277
if : matrix.target == 'swift'
274
- uses : swift-actions/setup-swift@v1
278
+ uses : swift-actions/setup-swift@v1.19.0
275
279
with :
276
280
swift-version : ' 5.2'
277
281
278
282
- name : Use ccache
279
283
if : (startswith(matrix.os, 'macos') || startswith(matrix.os, 'ubuntu')) && (matrix.target == 'cpp')
280
- uses : hendrikmuhs/ccache-action@v1
284
+ uses : hendrikmuhs/ccache-action@v1.2
281
285
with :
282
286
key : ${{ matrix.os }}-${{ matrix.target }}
283
287
@@ -336,7 +340,7 @@ jobs:
336
340
337
341
- name : Archive artifacts
338
342
if : always()
339
- uses : actions/upload-artifact@v2
343
+ uses : actions/upload-artifact@v3
340
344
with :
341
345
name : antlr_${{ matrix.os }}_${{ matrix.target }}
342
346
path : antlr_${{ matrix.os }}_${{ matrix.target }}.tgz
0 commit comments