-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci - Special builds on Github actions
- Loading branch information
Showing
2 changed files
with
121 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |