Skip to content

Commit

Permalink
ci - Special builds on Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
piponazo committed May 11, 2021
1 parent 567146a commit 4e7e13e
Show file tree
Hide file tree
Showing 2 changed files with 121 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/on_PR_linux_matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Linux-Ubuntu Matrix on PRs
on: [pull_request]

jobs:
windows:
Linux:
name: 'Ubuntu 20.04 - GCC, BuildType:${{matrix.build_type}}, SHARED:${{matrix.shared_libraries}}'
runs-on: ubuntu-latest

Expand All @@ -18,8 +18,6 @@ jobs:

- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install cmake zlib1g-dev libssh-dev python3-pip libxml2-utils g++
pip3 install conan==1.36.0
- name: Conan common config
Expand Down
120 changes: 120 additions & 0 deletions .github/workflows/on_PR_linux_special_buils.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
name: Linux Special Builds on PRs

on: [pull_request]

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.36.0
- 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_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 ..
make -j
- name: Tests + Upload coverage
env:
EXIV2_EXT: .exe
run: |
cd build/bin
./unit_tests
cd ../../tests/
python runner.py -v
bash <(curl -s https://codecov.io/bash)
special_releaseValgrind:
name: 'Ubuntu 20.04 - GCC - Release+Valgrind'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install valgrind
pip3 install conan==1.36.0
- 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=Release -DBUILD_SHARED_LIBS=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=OFF -DCMAKE_INSTALL_PREFIX=install ..
make -j
- name: Tests with valgrind
env:
EXIV2_EXT: .exe
run: |
cd build/bin
valgrind ./unit_tests
special_releaseSanitizers:
name: 'Ubuntu 20.04 - GCC - Release+Sanitizers'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: install dependencies
run: |
pip3 install conan==1.36.0
- 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=Release -DBUILD_SHARED_LIBS=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=OFF -DEXIV2_TEAM_USE_SANITIZERS=ON -DCMAKE_INSTALL_PREFIX=install ..
make -j
- name: Tests
env:
EXIV2_EXT: .exe
run: |
cd build/bin
./unit_tests
cd ../../tests/
python runner.py -v

0 comments on commit 4e7e13e

Please sign in to comment.