Skip to content

Commit 79a2aa3

Browse files
ci: the downloads of the pinned mcpp are retried, as GitHub's release downloads time out at times
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
1 parent 50a1c26 commit 79a2aa3

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎.github/workflows/openkal-compat.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
shell: bash
109109
run: |
110110
archive="mcpp-${MCPP_VERSION}-linux-x86_64.tar.gz"
111-
curl -L -fsS -o "$archive" \
111+
curl -L -fsS --retry 5 --retry-all-errors --retry-delay 10 -o "$archive" \
112112
"https://github.com/mcpp-community/mcpp/releases/download/v${MCPP_VERSION}/${archive}"
113113
tar -xzf "$archive"
114114
root="$PWD/mcpp-${MCPP_VERSION}-linux-x86_64"

‎.github/workflows/validate.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ jobs:
577577
# needing a newer grammar cannot pass a lint pinned to an older mcpp.
578578
- name: Download pinned mcpp
579579
run: |
580-
curl -L -fsS -o mcpp.tar.gz \
580+
curl -L -fsS --retry 5 --retry-all-errors --retry-delay 10 -o mcpp.tar.gz \
581581
"https://github.com/mcpp-community/mcpp/releases/download/v${MCPP_VERSION}/mcpp-${MCPP_VERSION}-linux-x86_64.tar.gz"
582582
tar -xzf mcpp.tar.gz
583583
echo "MCPP=$PWD/mcpp-${MCPP_VERSION}-linux-x86_64/bin/mcpp" >> "$GITHUB_ENV"
@@ -1210,7 +1210,7 @@ jobs:
12101210
MCPP_ARCHIVE: mcpp-${{ env.MCPP_VERSION }}-linux-x86_64.tar.gz
12111211
MCPP_ROOT: mcpp-${{ env.MCPP_VERSION }}-linux-x86_64
12121212
run: |
1213-
curl -L -fsS -o "$MCPP_ARCHIVE" \
1213+
curl -L -fsS --retry 5 --retry-all-errors --retry-delay 10 -o "$MCPP_ARCHIVE" \
12141214
"https://github.com/mcpp-community/mcpp/releases/download/v${MCPP_VERSION}/${MCPP_ARCHIVE}"
12151215
tar -xzf "$MCPP_ARCHIVE"
12161216
root="$PWD/$MCPP_ROOT"
@@ -1257,7 +1257,7 @@ jobs:
12571257
shell: bash
12581258
run: |
12591259
archive="mcpp-${MCPP_VERSION}-${{ matrix.suffix }}.tar.gz"
1260-
curl -L -fsS -o "$archive" "https://github.com/mcpp-community/mcpp/releases/download/v${MCPP_VERSION}/$archive"
1260+
curl -L -fsS --retry 5 --retry-all-errors --retry-delay 10 -o "$archive" "https://github.com/mcpp-community/mcpp/releases/download/v${MCPP_VERSION}/$archive"
12611261
tar -xzf "$archive"
12621262
echo "MCPP=$PWD/mcpp-${MCPP_VERSION}-${{ matrix.suffix }}/bin/mcpp" >> "$GITHUB_ENV"
12631263
- name: Immutable archive, default scaffold, strict build and loopback RPC
@@ -1380,7 +1380,7 @@ jobs:
13801380
MCPP_ARCHIVE: mcpp-${{ env.MCPP_VERSION }}-${{ matrix.suffix }}.${{ matrix.ext }}
13811381
MCPP_ROOT: mcpp-${{ env.MCPP_VERSION }}-${{ matrix.suffix }}
13821382
run: |
1383-
curl -L -fsS -o "$MCPP_ARCHIVE" \
1383+
curl -L -fsS --retry 5 --retry-all-errors --retry-delay 10 -o "$MCPP_ARCHIVE" \
13841384
"https://github.com/mcpp-community/mcpp/releases/download/v${MCPP_VERSION}/${MCPP_ARCHIVE}"
13851385
case "$MCPP_ARCHIVE" in
13861386
*.zip) powershell -NoProfile -Command "Expand-Archive -Force -Path '${MCPP_ARCHIVE}' -DestinationPath '.'" ;;

0 commit comments

Comments
 (0)