Skip to content

Commit f1b8982

Browse files
hs-apotelljimidle
authored andcommitted
Issue antlr#4185: Too many artifacts fail to upload (antlr#4186)
Github action for upload was upgraded to v3 recently and the release is unstable causing too many uploads to fail. Downgrading back to previous version hasn't made significant improvement either. Since the artifacts aren't exactly used by any chained job, failures for uploading the artifact can be ignored. The artifacts are used mostly for the purpose for debugging and so if needed the user can trigger specific build again to get the artifact. Signed-off-by: HS <[email protected]> Signed-off-by: Jim.Idle <[email protected]>
1 parent 91e2909 commit f1b8982

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/hosted.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414
contents: read
1515

1616
jobs:
17-
cpp-builds:
17+
cpp-lib-build:
1818
runs-on: ${{ matrix.os }}
1919

2020
strategy:
@@ -141,11 +141,12 @@ jobs:
141141
if: always()
142142
run: |
143143
cd ${{ github.workspace }}/..
144-
tar czfp antlr_${{ matrix.os }}_${{ matrix.compiler }}.tgz antlr4
144+
tar czfp antlr_${{ matrix.os }}_${{ matrix.compiler }}.tgz --exclude='.git' antlr4
145145
mv antlr_${{ matrix.os }}_${{ matrix.compiler }}.tgz ${{ github.workspace }}/.
146146
147147
- name: Archive artifacts
148148
if: always()
149+
continue-on-error: true
149150
uses: actions/upload-artifact@v3
150151
with:
151152
name: antlr_${{ matrix.os }}_${{ matrix.compiler }}
@@ -339,11 +340,12 @@ jobs:
339340
if: always()
340341
run: |
341342
cd ${{ github.workspace }}/..
342-
tar czfp antlr_${{ matrix.os }}_${{ matrix.target }}.tgz antlr4
343+
tar czfp antlr_${{ matrix.os }}_${{ matrix.target }}.tgz --exclude='.git' antlr4
343344
mv antlr_${{ matrix.os }}_${{ matrix.target }}.tgz ${{ github.workspace }}/.
344345
345346
- name: Archive artifacts
346347
if: always()
348+
continue-on-error: true
347349
uses: actions/upload-artifact@v3
348350
with:
349351
name: antlr_${{ matrix.os }}_${{ matrix.target }}

0 commit comments

Comments
 (0)