reduce VTK modules we build to just the rendering ones + the qt wrappers #382
Workflow file for this run
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: Release Builds | |
on: push | |
env: | |
LIBSBML_VERSION: "development" | |
LIBEXPAT_VERSION: "R_2_6_2" | |
SYMENGINE_VERSION: "master" | |
GMP_VERSION: "6.3.0" | |
MPFR_VERSION: "4.2.1" | |
SPDLOG_VERSION: "v1.14.1" | |
LIBTIFF_VERSION: "v4.6.0" | |
FMT_VERSION: "10.2.1" | |
TBB_VERSION: "v2021.12.0" | |
DPL_VERSION: "oneDPL-2022.5.0-rc1" | |
OPENCV_VERSION: "4.9.0" | |
CATCH2_VERSION: "v3.5.4" | |
BENCHMARK_VERSION: "v1.8.3" | |
CGAL_VERSION: "v5.6.1" | |
BOOST_VERSION: "1.85.0" | |
BOOST_VERSION_: "1_85_0" | |
QCUSTOMPLOT_VERSION: "2.1.1" | |
CEREAL_VERSION: "v1.3.2" | |
PAGMO_VERSION: "v2.19.0" | |
BZIP2_VERSION: "1.0.8" | |
ZIPPER_VERSION: "master" | |
COMBINE_VERSION: "master" | |
FUNCTION2_VERSION: "4.2.4" | |
VTK_VERSION: "v9.3.0" | |
SCOTCH_VERSION: "v7.0.4" | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: "ubuntu-20.04" | |
shell: "bash" | |
BOOST_INSTALL_PREFIX: "/opt/smelibs" | |
BOOST_BOOTSTRAP_OPTIONS: "--with-toolset=clang" | |
BOOST_B2_OPTIONS: "cxxflags=-fPIC" | |
TBB_ENABLE_IPO: "ON" | |
- os: "macos-13" | |
shell: "bash" | |
BOOST_INSTALL_PREFIX: "/opt/smelibs" | |
BOOST_B2_OPTIONS: 'cxxflags="-mmacosx-version-min=11" linkflags="-mmacosx-version-min=11"' | |
TBB_ENABLE_IPO: "ON" | |
VTK_OPTIONS: "-DFREETYPE_LIBRARY_RELEASE=/opt/smelibs/lib/libQt6BundledFreetype.a -DFREETYPE_INCLUDE_DIR_freetype2=/opt/smelibs/include/QtFreetype -DFREETYPE_INCLUDE_DIR_ft2build=/opt/smelibs/include/QtFreetype" | |
- os: "macos-14" | |
shell: "bash" | |
BOOST_INSTALL_PREFIX: "/opt/smelibs" | |
BOOST_B2_OPTIONS: 'cxxflags="-mmacosx-version-min=11" linkflags="-mmacosx-version-min=11"' | |
TBB_ENABLE_IPO: "ON" | |
VTK_OPTIONS: "-DFREETYPE_LIBRARY_RELEASE=/opt/smelibs/lib/libQt6BundledFreetype.a -DFREETYPE_INCLUDE_DIR_freetype2=/opt/smelibs/include/QtFreetype -DFREETYPE_INCLUDE_DIR_ft2build=/opt/smelibs/include/QtFreetype" | |
- os: "windows-2022" | |
shell: "msys2 {0}" | |
BOOST_INSTALL_PREFIX: "C:/smelibs" | |
BOOST_B2_OPTIONS: "address-model=64" | |
TBB_ENABLE_IPO: "OFF" | |
VTK_OPTIONS: "-DFREETYPE_LIBRARY_RELEASE=/c/smelibs/lib/libQt6BundledFreetype.a -DFREETYPE_INCLUDE_DIR_freetype2=/c/smelibs/include/QtFreetype -DFREETYPE_INCLUDE_DIR_ft2build=/c/smelibs/include/QtFreetype" | |
defaults: | |
run: | |
shell: ${{ matrix.shell }} | |
env: | |
BOOST_INSTALL_PREFIX: ${{ matrix.BOOST_INSTALL_PREFIX }} | |
BOOST_BOOTSTRAP_OPTIONS: ${{ matrix.BOOST_BOOTSTRAP_OPTIONS }} | |
BOOST_B2_OPTIONS: ${{ matrix.BOOST_B2_OPTIONS }} | |
TBB_ENABLE_IPO: ${{ matrix.TBB_ENABLE_IPO }} | |
VTK_OPTIONS: ${{ matrix.VTK_OPTIONS }} | |
steps: | |
- uses: spatial-model-editor/setup-ci@2024.04.23 | |
with: | |
sme_deps_llvm: "18.1.5" | |
sme_deps_qt: "6.7.0-mingw-gcc-14" | |
- uses: actions/checkout@v4 | |
- run: ./build.sh | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: artifacts-${{ matrix.os }} | |
path: ./artefacts/* | |
retention-days: 3 | |
release: | |
name: Upload Binaries to GitHub Release | |
needs: [build] | |
runs-on: ubuntu-latest | |
# upload binaries to github release if commit is tagged | |
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/') | |
permissions: | |
contents: write | |
steps: | |
- uses: dev-drprasad/delete-older-releases@v0.3.3 | |
with: | |
repo: spatial-model-editor/sme_deps_common | |
keep_latest: 5 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/download-artifact@v4 | |
with: | |
pattern: artifacts-* | |
merge-multiple: true | |
path: binaries | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: binaries/* | |
tag: ${{ github.ref }} | |
overwrite: true | |
file_glob: true |