mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-24 17:42:25 +00:00
Add vcpkg download cache and retry steps to linux CI job
Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com>
This commit is contained in:
parent
3eb2bfb7a9
commit
1c7a914083
27
.github/workflows/build.yaml
vendored
27
.github/workflows/build.yaml
vendored
@ -52,6 +52,33 @@ jobs:
|
|||||||
- name: Mark workspace safe
|
- name: Mark workspace safe
|
||||||
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||||
|
|
||||||
|
- name: Cache vcpkg downloads
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: submodules/vcpkg/downloads
|
||||||
|
key: ${{ runner.os }}-vcpkg-downloads-${{ hashFiles('submodules/vcpkg/vcpkg.json', 'submodules/vcpkg/ports/**', 'submodules/vcpkg/versions/**') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-vcpkg-downloads-
|
||||||
|
|
||||||
|
- name: vcpkg install (retry)
|
||||||
|
working-directory: ${{ github.workspace }}
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
cd submodules/vcpkg
|
||||||
|
./bootstrap-vcpkg.sh -disableMetrics
|
||||||
|
|
||||||
|
for i in 1 2 3 4 5; do
|
||||||
|
echo "vcpkg install attempt $i..."
|
||||||
|
if ./vcpkg install --triplet x64-linux; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
echo "vcpkg install failed; sleeping before retry..."
|
||||||
|
sleep $((i * 10))
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "vcpkg install failed after retries"
|
||||||
|
exit 1
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user