* Enable C++17 and use new inline specifier for const variable members * Silence deprecation warning on MSVC * Disable samples by default * improvements after review
64 lines
1.7 KiB
YAML
64 lines
1.7 KiB
YAML
name: On PRs - Linux-Ubuntu Matrix
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
Linux:
|
|
name: 'Ubuntu 20.04 - GCC, BuildType:${{matrix.build_type}}, SHARED:${{matrix.shared_libraries}}'
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
build_type: [Release, Debug]
|
|
shared_libraries: [ON, OFF]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: install dependencies
|
|
run: |
|
|
sudo apt-get install ninja-build
|
|
pip3 install conan==1.43.0
|
|
|
|
- name: Conan common config
|
|
run: |
|
|
conan profile new --detect default
|
|
conan profile update settings.build_type=${{matrix.build_type}} default
|
|
conan profile update settings.compiler.libcxx=libstdc++11 default
|
|
|
|
- name: Run Conan
|
|
run: |
|
|
mkdir build && cd build
|
|
conan profile list
|
|
conan profile show default
|
|
conan install .. -o webready=True --build missing
|
|
|
|
- name: Build
|
|
run: |
|
|
cd build && \
|
|
cmake -GNinja \
|
|
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
|
|
-DBUILD_SHARED_LIBS=${{matrix.shared_libraries}} \
|
|
-DEXIV2_BUILD_SAMPLES=ON \
|
|
-DEXIV2_ENABLE_PNG=ON \
|
|
-DEXIV2_ENABLE_WEBREADY=ON \
|
|
-DEXIV2_ENABLE_CURL=ON \
|
|
-DEXIV2_BUILD_UNIT_TESTS=ON \
|
|
-DEXIV2_ENABLE_BMFF=ON \
|
|
-DEXIV2_TEAM_WARNINGS_AS_ERRORS=ON \
|
|
-DCMAKE_INSTALL_PREFIX=install \
|
|
.. && \
|
|
cmake --build .
|
|
|
|
- name: Install
|
|
run: |
|
|
cd build
|
|
cmake --build . --target install
|
|
tree install
|
|
|
|
- name: Test
|
|
run: |
|
|
cd build
|
|
ctest --output-on-failure
|