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:
|
2023-09-01 15:27:37 +02:00
|
|
|
- meson setup -D buildtype=release build
|
|
|
|
- meson compile -C build -v
|
2019-10-10 07:26:34 +02:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2023-09-01 15:27:37 +02:00
|
|
|
- build/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:
|
2023-09-01 15:27:37 +02:00
|
|
|
- meson setup -D buildtype=release --cross-file scripts/arm64-cross.ini build
|
|
|
|
- meson compile -C build -v
|
2021-04-06 16:10:31 +02:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2023-09-01 15:27:37 +02:00
|
|
|
- build/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
|
2023-09-01 15:27:37 +02:00
|
|
|
- echo -e "[properties]\nboost_root = '$(pwd)/deps/mingw64/'" > boost.ini
|
|
|
|
- meson setup -D buildtype=release --cross-file scripts/windows-cross.ini --cross-file boost.ini build
|
|
|
|
- meson compile -C build -v
|
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-09-01 15:27:37 +02:00
|
|
|
- build/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:
|
2023-09-01 15:27:37 +02:00
|
|
|
- arch -x86_64 meson setup -D buildtype=release --native-file scripts/homebrew-native.ini build
|
|
|
|
- arch -x86_64 meson compile -C build -v
|
2021-04-02 18:04:12 +02:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2023-09-01 15:27:37 +02:00
|
|
|
- build/src/dynare-preprocessor
|