Skip to content

Commit 7511da0

Browse files
authored
Merge pull request #3989 from hs-apotell/hostedci
Issue #3988: Builds failing on Ubuntu
2 parents 91d9fd6 + 40e0518 commit 7511da0

File tree

1 file changed

+26
-22
lines changed

1 file changed

+26
-22
lines changed

.github/workflows/hosted.yml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: antlr4
22

3+
concurrency:
4+
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
37
on:
48
push:
59
branches: [ master, dev, hostedci ]
@@ -14,16 +18,16 @@ jobs:
1418
fail-fast: false
1519
matrix:
1620
os: [
17-
macos-latest,
18-
ubuntu-latest,
19-
windows-latest
21+
macos-11,
22+
ubuntu-20.04,
23+
windows-2022
2024
]
2125
compiler: [ clang, gcc ]
2226
exclude:
23-
- os: windows-latest
27+
- os: windows-2022
2428
compiler: gcc
2529
include:
26-
- os: windows-latest
30+
- os: windows-2022
2731
compiler: cl
2832

2933
steps:
@@ -46,11 +50,11 @@ jobs:
4650
cygwin: 0
4751

4852
- name: Check out code
49-
uses: actions/checkout@v2
53+
uses: actions/checkout@v3
5054

5155
- name: Use ccache
5256
if: startswith(matrix.os, 'macos') || startswith(matrix.os, 'ubuntu')
53-
uses: hendrikmuhs/ccache-action@v1
57+
uses: hendrikmuhs/ccache-action@v1.2
5458
with:
5559
key: ${{ matrix.os }}-${{ matrix.compiler }}
5660

@@ -138,7 +142,7 @@ jobs:
138142
139143
- name: Archive artifacts
140144
if: always()
141-
uses: actions/upload-artifact@v2
145+
uses: actions/upload-artifact@v3
142146
with:
143147
name: antlr_${{ matrix.os }}_${{ matrix.compiler }}
144148
path: antlr_${{ matrix.os }}_${{ matrix.compiler }}.tgz
@@ -151,9 +155,9 @@ jobs:
151155
fail-fast: false
152156
matrix:
153157
os: [
154-
macos-latest,
155-
ubuntu-latest,
156-
windows-latest
158+
macos-11,
159+
ubuntu-20.04,
160+
windows-2022
157161
]
158162
target: [
159163
tool,
@@ -169,7 +173,7 @@ jobs:
169173
swift,
170174
]
171175
exclude:
172-
- os: windows-latest
176+
- os: windows-2022
173177
target: swift
174178

175179
steps:
@@ -178,11 +182,11 @@ jobs:
178182
# dependencies, for instance, the setup-java actually parses
179183
# **/pom.xml files to decide what to cache.
180184
- name: Check out code
181-
uses: actions/checkout@v2
185+
uses: actions/checkout@v3
182186

183187
- name: Checkout antlr PHP runtime
184188
if: matrix.target == 'php'
185-
uses: actions/checkout@v2
189+
uses: actions/checkout@v3
186190
with:
187191
repository: antlr/antlr-php-runtime
188192
path: runtime/PHP
@@ -215,7 +219,7 @@ jobs:
215219

216220
- name: Set up Maven
217221
if: steps.setup-java.outputs.cache-hit != 'true'
218-
uses: stCarolas/setup-maven@v4.4
222+
uses: stCarolas/setup-maven@v4.5
219223
with:
220224
maven-version: 3.8.5
221225

@@ -239,13 +243,13 @@ jobs:
239243

240244
- name: Set up Node 14
241245
if: matrix.target == 'javascript'
242-
uses: actions/setup-node@v3
246+
uses: actions/setup-node@v3.5.1
243247
with:
244248
node-version: '14'
245249

246250
- name: Setup Dotnet
247251
if: matrix.target == 'csharp'
248-
uses: actions/setup-dotnet@v2
252+
uses: actions/setup-dotnet@v3.0.3
249253
with:
250254
dotnet-version: '6.0.x'
251255

@@ -257,27 +261,27 @@ jobs:
257261

258262
- name: Setup Go 1.19
259263
if: matrix.target == 'go'
260-
uses: actions/setup-go@v3
264+
uses: actions/setup-go@v3.3.1
261265
with:
262266
go-version: '^1.19'
263267

264268
- name: Setup PHP 8.2
265269
if: matrix.target == 'php'
266-
uses: shivammathur/setup-php@v2
270+
uses: shivammathur/setup-php@2.22.0
267271
with:
268272
php-version: '8.2'
269273
extensions: mbstring
270274
tools: composer
271275

272276
- name: Setup Swift
273277
if: matrix.target == 'swift'
274-
uses: swift-actions/setup-swift@v1
278+
uses: swift-actions/setup-swift@v1.19.0
275279
with:
276280
swift-version: '5.2'
277281

278282
- name: Use ccache
279283
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
281285
with:
282286
key: ${{ matrix.os }}-${{ matrix.target }}
283287

@@ -336,7 +340,7 @@ jobs:
336340
337341
- name: Archive artifacts
338342
if: always()
339-
uses: actions/upload-artifact@v2
343+
uses: actions/upload-artifact@v3
340344
with:
341345
name: antlr_${{ matrix.os }}_${{ matrix.target }}
342346
path: antlr_${{ matrix.os }}_${{ matrix.target }}.tgz

0 commit comments

Comments
 (0)