-
Notifications
You must be signed in to change notification settings - Fork 0
131 lines (131 loc) · 4.33 KB
/
release.yml
File metadata and controls
131 lines (131 loc) · 4.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
name: Release Builds
on: push
env:
LIBSBML_VERSION: "v5.20.5"
LIBEXPAT_VERSION: "R_2_7_3"
SYMENGINE_VERSION: "master"
GMP_VERSION: "6.3.0"
MPFR_VERSION: "4.2.1"
SPDLOG_VERSION: "v1.15.3"
LIBTIFF_VERSION: "v4.7.1"
FMT_VERSION: "12.0.0"
TBB_VERSION: "v2022.2.0"
DPL_VERSION: "oneDPL-2022.9.0-release"
OPENCV_VERSION: "4.12.0"
CATCH2_VERSION: "v3.10.0"
BENCHMARK_VERSION: "v1.9.4"
CGAL_VERSION: "v6.0.2"
BOOST_VERSION: "1.89.0"
BOOST_VERSION_: "1_89_0"
QCUSTOMPLOT_VERSION: "2.1.1"
CEREAL_VERSION: "v1.3.2"
PAGMO_VERSION: "v2.19.1"
BZIP2_VERSION: "bzip2-1.0.8"
ZIPPER_VERSION: "master"
COMBINE_VERSION: "master"
FUNCTION2_VERSION: "4.2.5"
VTK_VERSION: "v9.5.2"
SCOTCH_VERSION: "v7.0.9"
NLOPT_VERSION: "v2.10.0"
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: "ubuntu-22.04"
shell: "bash"
BOOST_INSTALL_PREFIX: "/opt/smelibs"
BOOST_BOOTSTRAP_OPTIONS: "--with-toolset=clang"
BOOST_B2_OPTIONS: "cxxflags=-fPIC"
TBB_ENABLE_IPO: "ON"
- os: "ubuntu-22.04"
shell: "bash"
BOOST_INSTALL_PREFIX: "/opt/smelibs"
BOOST_BOOTSTRAP_OPTIONS: "--with-toolset=clang"
BOOST_B2_OPTIONS: "cxxflags=-fPIC"
TBB_ENABLE_IPO: "ON"
TBB_SANITIZE: "thread"
BUILD_TAG: "_tsan"
- os: "ubuntu-22.04-arm"
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"
- 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"
- os: "windows-2022"
shell: "msys2 {0}"
BOOST_INSTALL_PREFIX: "C:/smelibs"
BOOST_B2_OPTIONS: "address-model=64"
TBB_ENABLE_IPO: "OFF"
# - os: "windows-11-arm"
# shell: "msys2 {0}"
# BOOST_INSTALL_PREFIX: "C:/smelibs"
# BOOST_B2_OPTIONS: "address-model=64"
# TBB_ENABLE_IPO: "OFF"
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 }}
TBB_SANITIZE: ${{ matrix.TBB_SANITIZE }}
BUILD_TAG: ${{ matrix.BUILD_TAG }}
steps:
- uses: spatial-model-editor/setup-ci@2025.10.15
with:
sme_deps_llvm: "21.1.2-tsan"
sme_deps_qt: "6.9.2-tsan"
build_tag: ${{ matrix.BUILD_TAG }}
cache_id: ${{ matrix.BUILD_TAG }}
- uses: actions/checkout@v4
- run: ./build.sh
- uses: actions/upload-artifact@v4
with:
name: artifacts-${{ matrix.os }}${{ matrix.BUILD_TAG }}
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.4
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