You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.1 KiB
YAML
68 lines
2.1 KiB
YAML
name: On PUSH - Linux Special Builds for main branch
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- '!*'
|
|
paths-ignore:
|
|
- "*.md"
|
|
|
|
jobs:
|
|
special_debugRelease:
|
|
name: 'Ubuntu 20.04 - GCC - Debug+Coverage'
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: install dependencies
|
|
run: |
|
|
pip3 install conan==1.45.0
|
|
pip install gcovr
|
|
|
|
- name: Conan common config
|
|
run: |
|
|
conan profile new --detect 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 -DCMAKE_BUILD_TYPE=Debug \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-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 \
|
|
-DBUILD_WITH_COVERAGE=ON \
|
|
-DCMAKE_INSTALL_PREFIX=install \
|
|
.. && \
|
|
cmake --build . --parallel
|
|
|
|
- name: Tests + Upload coverage
|
|
run: |
|
|
cd build
|
|
ctest --output-on-failure
|
|
# this needs to match th ecommand in on_PR_linux_secial_builds.yml!
|
|
gcovr --root .. --object-dir . --exclude-unreachable-branches --exclude-throw-branches --xml -o coverage.xml .
|
|
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --import
|
|
curl -Os https://uploader.codecov.io/latest/linux/codecov
|
|
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
|
|
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
|
|
gpg --verify codecov.SHA256SUM.sig codecov.SHA256SUM
|
|
shasum -a 256 -c codecov.SHA256SUM
|
|
chmod +x codecov
|
|
./codecov -f build/coverage.xml
|