Skip to content

Test build on macos-13, 14 and 15 #51

Test build on macos-13, 14 and 15

Test build on macos-13, 14 and 15 #51

Workflow file for this run

name: CI
on:
push:
branches: [ 'github-workflow' ]
jobs:
build:
strategy:
matrix:
include:
- name: darwin64-13
image: macos-13
cmake-args: -G "Unix Makefiles" -D CMAKE_OSX_ARCHITECTURES=x86_64
- name: darwin64-14
image: macos-14
cmake-args: -G "Unix Makefiles" -D CMAKE_OSX_ARCHITECTURES=x86_64
- name: darwin64-15
image: macos-15
cmake-args: -G "Unix Makefiles" -D CMAKE_OSX_ARCHITECTURES=x86_64
runs-on: ${{ matrix.image }}
steps:
- uses: actions/checkout@v4.1.7
with:
submodules: recursive
- run: |
cmake ${{ matrix.cmake-args }} -D BUILD_SHARED_LIBS=OFF -D BUILD_TESTING=OFF -D HDF5_BUILD_CPP_LIB=OFF -D HDF5_BUILD_EXAMPLES=OFF -D HDF5_BUILD_TOOLS=OFF -D HDF5_BUILD_UTILS=OFF -D CMAKE_INSTALL_PREFIX=ThirdParty/hdf5-${{ matrix.name }}/install -D CMAKE_POLICY_DEFAULT_CMP0091=NEW -D CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -B ThirdParty/hdf5-${{ matrix.name }}/build ThirdParty/hdf5
cmake --build ./ThirdParty/hdf5-${{ matrix.name }}/build --config Release --target install
- run: |
cmake ${{ matrix.cmake-args }} -D CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -D MATIO_MAT73=OFF -D MATIO_SHARED=OFF -D MATIO_WITH_HDF5=OFF -D MATIO_WITH_ZLIB=OFF -D CMAKE_INSTALL_PREFIX=ThirdParty/matio-${{ matrix.name }}/install -D CMAKE_POLICY_DEFAULT_CMP0091=NEW -B ThirdParty/matio-${{ matrix.name }}/build ThirdParty/matio
cmake --build ./ThirdParty/matio-${{ matrix.name }}/build --config Release --target install
- run: |
cmake ${{ matrix.cmake-args }} -B ${{ matrix.name }} .
cmake --build ${{ matrix.name }} --config Release
ctest --test-dir ${{ matrix.name }} --build-config Release
- uses: actions/upload-artifact@v4.4.0
with:
name: ${{ matrix.name }}
path: SDF
if-no-files-found: error
merge:
runs-on: ubuntu-20.04
needs: [build]
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/download-artifact@v4.1.8
with:
name: win64
path: SDF
- uses: actions/download-artifact@v4.1.8
with:
name: win32
path: SDF
- uses: actions/download-artifact@v4.1.8
with:
name: linux64
path: SDF
- uses: actions/download-artifact@v4.1.8
with:
name: darwin64
path: SDF
- run: find -type f -name .gitignore -delete
- uses: actions/upload-artifact@v4.4.0
with:
name: SDF-Modelica
path: |
SDF
LICENSE.txt
README.md
if-no-files-found: error