Skip to content
Snippets Groups Projects
Verified Commit 762361de authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

CI: cache MSYS2 tarball of Boost, following configuration change in the runners

(cherry picked from commit 09cff800)
parent 3db33292
No related branches found
No related tags found
No related merge requests found
...@@ -37,13 +37,18 @@ build_linux_arm64: ...@@ -37,13 +37,18 @@ build_linux_arm64:
build_windows_x86_64: build_windows_x86_64:
stage: build stage: build
script: script:
- mkdir -p ~/tarballs - mkdir -p tarballs
- '[[ -f ~/tarballs/mingw-w64-x86_64-boost-$MINGW64_BOOST_VERSION-any.pkg.tar.zst ]] || wget $WGET_OPTIONS -P ~/tarballs http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-boost-$MINGW64_BOOST_VERSION-any.pkg.tar.zst' - '[[ -f tarballs/mingw-w64-x86_64-boost-$MINGW64_BOOST_VERSION-any.pkg.tar.zst ]] || wget $WGET_OPTIONS -P tarballs http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-boost-$MINGW64_BOOST_VERSION-any.pkg.tar.zst'
- mkdir -p deps - mkdir -p deps
- tar xf ~/tarballs/mingw-w64-x86_64-boost-$MINGW64_BOOST_VERSION-any.pkg.tar.zst --directory deps - tar xf tarballs/mingw-w64-x86_64-boost-$MINGW64_BOOST_VERSION-any.pkg.tar.zst --directory deps
- autoreconf -si - autoreconf -si
- ./configure --host=x86_64-w64-mingw32 --with-boost=$(pwd)/deps/mingw64/include - ./configure --host=x86_64-w64-mingw32 --with-boost=$(pwd)/deps/mingw64/include
- make -j$(nproc) - make -j$(nproc)
cache:
# This cache is shared between all branches, to save space
key: $CI_JOB_NAME
paths:
- tarballs/
artifacts: artifacts:
paths: paths:
- src/dynare-preprocessor.exe - src/dynare-preprocessor.exe
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment