Skip to content

pin cmake version to <3.29 due to dune cmake issue for cmake >=3.29 #274

pin cmake version to <3.29 due to dune cmake issue for cmake >=3.29

pin cmake version to <3.29 due to dune cmake issue for cmake >=3.29 #274

Workflow file for this run

name: Release Builds
on: push
env:
SME_DEPS_COMMON_VERSION: "2024.04.10"
DUNE_COPASI_VERSION: "master"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: "ubuntu-20.04"
shell: "bash"
- os: "macos-13"
shell: "bash"
- os: "windows-2022"
shell: "msys2 {0}"
defaults:
run:
shell: ${{ matrix.shell }}
steps:
- uses: spatial-model-editor/setup-ci@v1
- if: runner.os == 'Linux'
run: |
pip install "cmake<3.29"
cmake --version
- if: runner.os == 'macOS'
run: |
pip install "cmake<3.29"
cmake --version
- if: runner.os == 'Windows'
run: |
wget https://repo.msys2.org/mingw/ucrt64/mingw-w64-ucrt-x86_64-ccmake-3.28.3-2-any.pkg.tar.zst
pacman -U mingw-w64-ucrt-x86_64-ccmake-3.28.3-2-any.pkg.tar.zst
cmake --version
- uses: actions/checkout@v4
- name: Build script
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
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