diff --git a/.github/workflows/builds.yaml b/.github/workflows/builds.yaml index 07b6422..d4865bf 100644 --- a/.github/workflows/builds.yaml +++ b/.github/workflows/builds.yaml @@ -11,7 +11,15 @@ concurrency: cancel-in-progress: true jobs: - ci: + # Build in/against ossia score: dev tree, SDK, and JIT artifact tracks. + score: + uses: ossia/actions/.github/workflows/score-addon.yml@master + secrets: inherit + with: + release: false # the templates ship no release.sh + + # Build the same object(s) standalone, one artifact per back-end. + standalone: uses: ossia/actions/.github/workflows/avnd-addon.yml@master secrets: inherit with: diff --git a/CMakeLists.txt b/CMakeLists.txt index 299310d..af236f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,14 @@ cmake_minimum_required(VERSION 3.24 FATAL_ERROR) project(MyOnnx CXX) +# Max/MSP externals link the static CRT (/MT) on Windows, as the official +# max-sdk-base requires. Set it for the whole addon -- before Avendish and the +# object library are created -- so every target shares one runtime; mixing /MT +# and /MD trips MSVC with LNK2038. (CMP0091 is NEW via cmake_minimum_required.) +if(MSVC) + set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") +endif() + # Use the Avendish the host already provides (e.g. ossia score); otherwise fetch it. # The same CMakeLists builds this as an ossia/score add-on or as a standalone object. find_package(Avendish QUIET) @@ -40,4 +48,4 @@ avnd_addon_object( src/Model.hpp src/Processor.hpp) -avnd_addon_finalize(NAME MyOnnx UUID 2cd49539-0cfe-4e43-bade-16d718ebc747 VERSION 1.0.0) +avnd_addon_finalize(NAME MyOnnx UUID 2cd49539-0cfe-4e43-bade-16d718ebc747 VERSION 1)