create mingw docker image

This commit is contained in:
lukas 2021-03-15 18:46:42 +01:00
parent 916bdb7358
commit 0679c0a5fe
3 changed files with 19 additions and 4 deletions

View File

@ -11,8 +11,25 @@ cache:
paths: paths:
- .conan/ - .conan/
conan: conan_linux:
stage: build 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:latest
before_script: before_script:
- conan profile new default --detect --force # Generates default profile detecting GCC and sets old ABI - 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 - conan profile update settings.compiler.libcxx=libstdc++11 default # Sets libcxx to C++11 ABI

View File

@ -1,4 +1,4 @@
FROM gcc:latest FROM mwaeckerlin/mingw:latest
COPY ./build.sh /tmp/ COPY ./build.sh /tmp/

View File

@ -10,8 +10,6 @@ git checkout conansupport
conan profile new default --detect --force # Generates default profile detecting GCC and sets old ABI 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 conan profile update settings.compiler.libcxx=libstdc++11 default # Sets libcxx to C++11 ABI
conan remote add bintray https://api.bintray.com/conan/lheili/LibConfig --force
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan --force
mkdir -p build # create build folder mkdir -p build # create build folder
CONAN_SYSREQUIRES_MODE=enabled CONAN_SYSREQUIRES_SUDO=0 conan install . --build=missing CONAN_SYSREQUIRES_MODE=enabled CONAN_SYSREQUIRES_SUDO=0 conan install . --build=missing