2019-10-10 07:26:34 +02:00
|
|
|
variables:
|
|
|
|
TERM: linux
|
2023-06-07 10:27:45 +02:00
|
|
|
MINGW32_BOOST_VERSION: 1.81.0-7
|
|
|
|
MINGW64_BOOST_VERSION: 1.81.0-7
|
2019-10-17 16:03:22 +02:00
|
|
|
WGET_OPTIONS: '--no-verbose --no-use-server-timestamps --retry-connrefused --retry-on-host-error'
|
2019-10-10 07:26:34 +02:00
|
|
|
|
2021-04-06 15:16:23 +02:00
|
|
|
build_linux_x86_64:
|
2019-10-10 07:26:34 +02:00
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- autoreconf -si
|
2023-03-13 17:35:51 +01:00
|
|
|
- ./configure --host=x86_64-linux-gnu
|
2019-10-10 07:26:34 +02:00
|
|
|
- make -j$(nproc)
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2023-03-01 12:53:49 +01:00
|
|
|
- src/dynare-preprocessor
|
2019-10-10 07:26:34 +02:00
|
|
|
|
2023-03-01 12:53:49 +01:00
|
|
|
build_linux_arm64:
|
2021-04-06 16:10:31 +02:00
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- autoreconf -si
|
2023-03-13 17:35:51 +01:00
|
|
|
- ./configure --host=aarch64-linux-gnu
|
2021-04-06 16:10:31 +02:00
|
|
|
- make -j$(nproc)
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2023-03-01 12:53:49 +01:00
|
|
|
- src/dynare-preprocessor
|
2019-10-10 07:26:34 +02:00
|
|
|
|
2021-04-06 15:16:23 +02:00
|
|
|
build_windows_x86_64:
|
2019-10-10 07:26:34 +02:00
|
|
|
stage: build
|
|
|
|
script:
|
2023-06-07 10:34:40 +02:00
|
|
|
- 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'
|
2019-10-10 07:26:34 +02:00
|
|
|
- mkdir -p deps
|
2023-06-07 10:34:40 +02:00
|
|
|
- tar xf tarballs/mingw-w64-x86_64-boost-$MINGW64_BOOST_VERSION-any.pkg.tar.zst --directory deps
|
2019-10-10 07:26:34 +02:00
|
|
|
- autoreconf -si
|
2023-03-13 17:35:51 +01:00
|
|
|
- ./configure --host=x86_64-w64-mingw32 --with-boost=$(pwd)/deps/mingw64/include
|
2019-10-10 07:26:34 +02:00
|
|
|
- make -j$(nproc)
|
2023-06-07 10:34:40 +02:00
|
|
|
cache:
|
|
|
|
# This cache is shared between all branches, to save space
|
|
|
|
key: $CI_JOB_NAME
|
|
|
|
paths:
|
|
|
|
- tarballs/
|
2019-10-10 07:26:34 +02:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2023-03-01 12:53:49 +01:00
|
|
|
- src/dynare-preprocessor.exe
|
2019-10-10 07:26:34 +02:00
|
|
|
|
2021-04-06 15:16:23 +02:00
|
|
|
build_macos_x86_64:
|
2019-10-10 07:26:34 +02:00
|
|
|
stage: build
|
|
|
|
tags:
|
|
|
|
- macOS
|
|
|
|
script:
|
|
|
|
- autoreconf -si
|
2023-06-07 10:27:20 +02:00
|
|
|
- arch -x86_64 ./configure CC=gcc-13 CXX=g++-13 LEX=/usr/local/opt/flex/bin/flex YACC=/usr/local/opt/bison/bin/bison
|
2023-03-13 17:10:43 +01:00
|
|
|
- arch -x86_64 make -j$(sysctl -n hw.ncpu)
|
2021-04-02 18:04:12 +02:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2023-03-01 12:53:49 +01:00
|
|
|
- src/dynare-preprocessor
|