File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -315,8 +315,6 @@ jobs:
315
315
fi
316
316
git config --global pack.threads 0
317
317
318
- - uses : actions/checkout@v3
319
-
320
318
- name : Install packages
321
319
if : matrix.install
322
320
run : |
@@ -431,11 +429,25 @@ jobs:
431
429
then
432
430
DEPINST_ARGS+=("--git_args" "--jobs $GIT_FETCH_JOBS")
433
431
fi
432
+ mkdir -p snapshot
433
+ cd snapshot
434
+ echo "Downloading library snapshot: https://github.com/${GITHUB_REPOSITORY}/archive/${GITHUB_SHA}.tar.gz"
435
+ curl -L --retry "$NET_RETRY_COUNT" -o "${LIBRARY}-${GITHUB_SHA}.tar.gz" "https://github.com/${GITHUB_REPOSITORY}/archive/${GITHUB_SHA}.tar.gz"
436
+ tar -xf "${LIBRARY}-${GITHUB_SHA}.tar.gz"
437
+ if [ ! -d "${LIBRARY}-${GITHUB_SHA}" ]
438
+ then
439
+ echo "Library snapshot does not contain the library directory ${LIBRARY}-${GITHUB_SHA}:"
440
+ ls -la
441
+ exit 1
442
+ fi
443
+ rm -f "${LIBRARY}-${GITHUB_SHA}.tar.gz"
434
444
cd ..
435
445
git clone -b "$BOOST_BRANCH" --depth 1 "https://github.com/boostorg/boost.git" "boost-root"
436
446
cd boost-root
437
- mkdir -p libs/$LIBRARY
438
- cp -r $GITHUB_WORKSPACE/* libs/$LIBRARY
447
+ mkdir -p libs
448
+ rm -rf "libs/$LIBRARY"
449
+ mv -f "../snapshot/${LIBRARY}-${GITHUB_SHA}" "libs/$LIBRARY"
450
+ rm -rf "../snapshot"
439
451
git submodule update --init tools/boostdep
440
452
DEPINST_ARGS+=("$LIBRARY")
441
453
python tools/boostdep/depinst/depinst.py "${DEPINST_ARGS[@]}"
@@ -457,7 +469,7 @@ jobs:
457
469
- name : Run tests
458
470
if : matrix.cmake_tests == ''
459
471
run : |
460
- cd ../ boost-root
472
+ cd boost-root
461
473
B2_ARGS=("-j" "$BUILD_JOBS" "toolset=${{matrix.toolset}}" "cxxstd=${{matrix.cxxstd}}")
462
474
if [ -n "${{matrix.build_variant}}" ]
463
475
then
You can’t perform that action at this time.
0 commit comments