DynuIPRefresher/.gitlab-ci.yml
2021-03-15 20:39:51 +01:00

43 lines
1.1 KiB
YAML

include: '/Docker/Windows_Conan/.gitlab-ci.yml'
image: conanio/gcc10
stages:
- docker
- build
- packageing
cache:
paths:
- .conan/
conan_linux:
stage: build
before_script:
- conan profile new default --detect --force # Generates default profile detecting GCC and sets old ABI
- conan profile update settings.compiler.libcxx=libstdc++11 default # Sets libcxx to C++11 ABI
- mkdir -p build # create build folder
- CONAN_SYSREQUIRES_MODE=enabled CONAN_SYSREQUIRES_SUDO=0 conan install . --build=missing -g cmake -if build
script:
- cmake -S . -B build -D WinBuild=OFF #cmake project
- cd build
- make -j4 #build
artifacts:
paths:
- build/bin/
expire_in: 1 days
conan_windows:
stage: build
image: luki42/dynuiprefresher_build:conanbuild
before_script:
- mkdir -p build # create build folder
- CONAN_SYSREQUIRES_MODE=enabled CONAN_SYSREQUIRES_SUDO=0 conan install . --build=missing -g cmake -if build --profile mingw64.profile
script:
- cmake -S . -B build -D WinBuild=ON #cmake project
- cd build
- make -j4 #build
artifacts:
paths:
- build/bin/
expire_in: 1 days