Skip to content

downgrade libfmt due to vtk/fmt linking issue on windows (see #33) #387

downgrade libfmt due to vtk/fmt linking issue on windows (see #33)

downgrade libfmt due to vtk/fmt linking issue on windows (see #33) #387

Workflow file for this run

name: Release Builds
on: push
env:
LIBSBML_VERSION: "v5.20.4"
LIBEXPAT_VERSION: "R_2_6_3"
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.13.0"
DPL_VERSION: "oneDPL-2022.6.0-rc1"
OPENCV_VERSION: "4.10.0"
CATCH2_VERSION: "v3.7.0"
BENCHMARK_VERSION: "v1.9.0"
CGAL_VERSION: "v5.6.1"
BOOST_VERSION: "1.86.0"
BOOST_VERSION_: "1_86_0"
QCUSTOMPLOT_VERSION: "2.1.1"
CEREAL_VERSION: "v1.3.2"
PAGMO_VERSION: "v2.19.1"
BZIP2_VERSION: "1.0.8"
ZIPPER_VERSION: "master"
COMBINE_VERSION: "master"
FUNCTION2_VERSION: "4.2.4"
VTK_VERSION: "v9.3.1"
SCOTCH_VERSION: "v7.0.5"
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true
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/[email protected]
with:
sme_deps_llvm: "18.1.8"
sme_deps_qt: "6.7.2"
- 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/[email protected]
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