33 lines
817 B
YAML
33 lines
817 B
YAML
image: conanio/clang7
|
|
|
|
build:
|
|
stage: build
|
|
before_script:
|
|
- apt update && apt -y install cmake ninja
|
|
- pip install conan --upgrade
|
|
- conan profile new default --detect
|
|
- conan profile update settings.compiler=clang default
|
|
- conan profile update settings.compiler.version=7.0 default
|
|
- conan profile update settings.compiler.libcxx=libstdc++11 default
|
|
- conan profile update env.CC=/bin/clang default
|
|
- conan profile update env.CXX=/bin/clang++ default
|
|
script:
|
|
- mkdir build && cd build
|
|
- conan install .. --build missing
|
|
- export CC=clang
|
|
- export CXX=clang++
|
|
- cmake .. -G Ninja
|
|
- cmake --build .
|
|
artifacts:
|
|
paths:
|
|
- mybinary
|
|
cache:
|
|
paths:
|
|
- "*.o"
|
|
- "~/.conan/"
|
|
|
|
# test:
|
|
# stage: test
|
|
# script:
|
|
# - ./runmytests.sh
|