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

CI: store Boost version in a variable

parent c30e52dc
Branches
Tags
No related merge requests found
variables: variables:
TERM: linux TERM: linux
MINGW32_BOOST_VERSION: 1.71.0-1
MINGW64_BOOST_VERSION: 1.71.0-1
before_script: before_script:
- 'export REMOTE_PATH=https://www.dynare.org/preprocessor/$CI_COMMIT_SHORT_SHA' - 'export REMOTE_PATH=https://www.dynare.org/preprocessor/$CI_COMMIT_SHORT_SHA'
...@@ -46,9 +48,9 @@ build_windows_32: ...@@ -46,9 +48,9 @@ build_windows_32:
stage: build stage: build
script: script:
- mkdir -p deps - mkdir -p deps
- cd deps && wget http://repo.msys2.org/mingw/i686/mingw-w64-i686-boost-1.71.0-1-any.pkg.tar.xz - cd deps && wget http://repo.msys2.org/mingw/i686/mingw-w64-i686-boost-$MINGW32_BOOST_VERSION-any.pkg.tar.xz
- tar xf mingw-w64-i686-boost-1.71.0-1-any.pkg.tar.xz - tar xf mingw-w64-i686-boost-$MINGW32_BOOST_VERSION-any.pkg.tar.xz
- rm mingw-w64-i686-boost-1.71.0-1-any.pkg.tar.xz && cd .. - rm mingw-w64-i686-boost-$MINGW32_BOOST_VERSION-any.pkg.tar.xz && cd ..
- autoreconf -si - autoreconf -si
- './configure --host=i686-w64-mingw32 --with-boost=$(pwd)/deps/mingw32/include LDFLAGS="-static -static-libgcc -static-libstdc++"' - './configure --host=i686-w64-mingw32 --with-boost=$(pwd)/deps/mingw32/include LDFLAGS="-static -static-libgcc -static-libstdc++"'
- make -j$(nproc) - make -j$(nproc)
...@@ -67,9 +69,9 @@ build_windows_64: ...@@ -67,9 +69,9 @@ build_windows_64:
stage: build stage: build
script: script:
- mkdir -p deps - mkdir -p deps
- cd deps && wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-boost-1.71.0-1-any.pkg.tar.xz - cd deps && wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-boost-$MINGW64_BOOST_VERSION-any.pkg.tar.xz
- tar xf mingw-w64-x86_64-boost-1.71.0-1-any.pkg.tar.xz - tar xf mingw-w64-x86_64-boost-$MINGW64_BOOST_VERSION-any.pkg.tar.xz
- rm mingw-w64-x86_64-boost-1.71.0-1-any.pkg.tar.xz && cd .. - rm mingw-w64-x86_64-boost-$MINGW64_BOOST_VERSION-any.pkg.tar.xz && cd ..
- autoreconf -si - autoreconf -si
- './configure --host=x86_64-w64-mingw32 --with-boost=$(pwd)/deps/mingw64/include LDFLAGS="-static -static-libgcc -static-libstdc++"' - './configure --host=x86_64-w64-mingw32 --with-boost=$(pwd)/deps/mingw64/include LDFLAGS="-static -static-libgcc -static-libstdc++"'
- make -j$(nproc) - make -j$(nproc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment