preprocessor/.gitlab-ci.yml

62 lines
1.6 KiB
YAML
Raw Normal View History

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
WGET_OPTIONS: '--no-verbose --no-use-server-timestamps --retry-connrefused --retry-on-host-error'
build_linux_i686:
stage: build
2018-09-11 15:54:59 +02:00
script:
- autoreconf -si
2023-03-13 17:35:51 +01:00
- ./configure --host=i686-linux-gnu
2018-09-11 19:09:45 +02:00
- make -j$(nproc)
artifacts:
paths:
- src/dynare-preprocessor
build_linux_x86_64:
stage: build
script:
- autoreconf -si
2023-03-13 17:35:51 +01:00
- ./configure --host=x86_64-linux-gnu
- make -j$(nproc)
artifacts:
paths:
- src/dynare-preprocessor
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:
- src/dynare-preprocessor
build_windows_x86_64:
stage: build
script:
- 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'
- mkdir -p deps
- tar xf ~/tarballs/mingw-w64-x86_64-boost-$MINGW64_BOOST_VERSION-any.pkg.tar.zst --directory deps
- autoreconf -si
2023-03-13 17:35:51 +01:00
- ./configure --host=x86_64-w64-mingw32 --with-boost=$(pwd)/deps/mingw64/include
- make -j$(nproc)
artifacts:
paths:
- src/dynare-preprocessor.exe
build_macos_x86_64:
stage: build
tags:
- macOS
script:
- autoreconf -si
2023-03-13 17:35:51 +01:00
- arch -x86_64 ./configure CC=gcc-12 CXX=g++-12 LEX=/usr/local/opt/flex/bin/flex YACC=/usr/local/opt/bison/bin/bison
- arch -x86_64 make -j$(sysctl -n hw.ncpu)
artifacts:
paths:
- src/dynare-preprocessor