Skip to content

Shorten PROJECT_BRIEF in simage.doxygen.awesome.cmake.in to avoid overlap of search box #21

Shorten PROJECT_BRIEF in simage.doxygen.awesome.cmake.in to avoid overlap of search box

Shorten PROJECT_BRIEF in simage.doxygen.awesome.cmake.in to avoid overlap of search box #21

name: Continuous Integration Build
on:
pull_request:
branches: [ master ]
# push:
# branches: [ master ]
jobs:
ubuntu-build:
name: Ubuntu Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Create build directory and run CMake
run: |
sudo apt-get -y update
sudo apt-get -y install libpng-dev libjpeg-dev libgif-dev libtiff-dev libogg-dev libvorbis-dev libsndfile-dev zlib1g-dev
cmake -S . -B cmake_build_dir -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=cmake_install_dir
- name: Build project
run: cmake --build cmake_build_dir --target install --config Release -- -j4
#- name: Run tests
# run: ctest -C Release -VV
# working-directory: cmake_build_dir
- name: Create Artifacts
uses: actions/upload-artifact@v3
with:
name: Ubuntu-Artifacts
path: cmake_install_dir/
if: always()
windows-build:
name: Windows Build
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Create build directory and run CMake
run: |
cmake -S . -B cmake_build_dir -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=cmake_install_dir -DSIMAGE_LIBSNDFILE_SUPPORT=OFF -DSIMAGE_OGGVORBIS_SUPPORT=OFF
- name: Build project
shell: cmd
run: cmake --build cmake_build_dir --target INSTALL --config Release -- /nologo /verbosity:minimal /maxcpucount:2 /property:MultiProcessorCompilation=true
#- name: Run tests
# run: ctest -C Release -VV
# working-directory: cmake_build_dir
- name: Create Artifacts
uses: actions/upload-artifact@v3
with:
name: Windows-Artifacts
path: cmake_install_dir/
if: always()
macos-build:
name: MacOS Build
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Create build directory and run CMake
run: |
brew install jpeg giflib libtiff libogg libvorbis libsndfile zlib
cmake -S . -B cmake_build_dir -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=cmake_install_dir
- name: Build project
run: cmake --build cmake_build_dir --target install --config Release -- -j4
#- name: Run tests
# run: ctest -C Release -VV
# working-directory: cmake_build_dir
- name: Create Artifacts
uses: actions/upload-artifact@v3
with:
name: MacOS-Artifacts
path: cmake_install_dir/
if: always()