Merge pull request #22 from vgrinberg/fix-warnings #20
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
name: BUILD-MSVC-CI | |
on: [push, pull_request] | |
jobs: | |
ci: | |
if: >- | |
! contains(toJSON(github.event.commits.*.message), '[skip ci]') && | |
! contains(toJSON(github.event.commits.*.message), '[skip github]') | |
name: MSVC 2022 | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- {gen: Visual Studio 17 2022, arch: Win32, shared: ON, static: OFF} | |
- {gen: Visual Studio 17 2022, arch: Win32, shared: OFF, static: ON} | |
- {gen: Visual Studio 17 2022, arch: x64, shared: ON, static: OFF} | |
- {gen: Visual Studio 17 2022, arch: x64, shared: OFF, static: ON} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Configure | |
run: | | |
mkdir install | |
cmake -G "${{matrix.gen}}" -A ${{matrix.arch}} -DTinyTIFF_BUILD_SHARED_LIBS=${{matrix.shared}} -DTinyTIFF_BUILD_STATIC_LIBS=${{matrix.static}} -DBUILD_SHARED_LIBS=${{matrix.shared}} "-DCMAKE_INSTALL_PREFIX=./install" -B build | |
- name: Build Debug | |
run: | | |
cmake --build build --config Debug --verbose | |
- name: Build Release | |
run: | | |
cmake --build build --config Release --verbose | |
- name: Install | |
run: | | |
cmake --install build --config Release | |
cd install | |
ls -R | |
- name: Run Release tests | |
run: | | |
cd build | |
cd output | |
cd Release | |
pwd | |
ls | |
.\tinytiffwriter_test --simple | |
.\tinytiffreader_test --simple | |
# ctest -C Release -LE explicitonly --output-on-failure | |
- name: Run Debug tests | |
run: | | |
cd build | |
cd output | |
cd Debug | |
pwd | |
ls | |
.\tinytiffwriter_test --simple | |
.\tinytiffreader_test --simple | |
# ctest -C Debug -LE explicitonly --output-on-failure | |