Skip to content

Commit d47332b

Browse files
DorianGerardinArthoni
authored andcommittedJan 20, 2025·
Refresh macos support
* Updated to Qt6 * Added pandoc dependency * Updated macos versions in actions
1 parent 158cc79 commit d47332b

File tree

4 files changed

+38
-36
lines changed

4 files changed

+38
-36
lines changed
 

‎.github/workflows/CI-macos.yaml

+17-7
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,23 @@ jobs:
1212
ci-macos-debug:
1313
strategy:
1414
matrix:
15-
os: [macos-13]
15+
os: [macos-13, macos-14, macos-15]
1616
runs-on: ${{ matrix.os }}
1717

1818
steps:
1919
- name: Installation of dependencies
2020
run: |
2121
brew install \
22-
boost gdal curl qt6 \
23-
gnuplot
22+
boost gdal curl qt6 \
23+
gnuplot
24+
- name: Installation of pandoc
25+
uses: r-lib/actions/setup-pandoc@v2
26+
- name: Installation of latex
27+
uses: teatimeguest/setup-texlive-action@v3
28+
with:
29+
packages: |
30+
scheme-full
31+
bibtex
2432
- name: Checkout of source code
2533
uses: actions/checkout@v3
2634
- name: Preparation
@@ -32,7 +40,7 @@ jobs:
3240
working-directory: ./_build
3341
- name: Build
3442
run: make -j 2
35-
working-directory: ./_build
43+
working-directory: ./_build
3644
- name: Testing
3745
run: ctest --output-on-failure
3846
working-directory: ./_build
@@ -44,15 +52,17 @@ jobs:
4452
ci-macos-release:
4553
strategy:
4654
matrix:
47-
os: [macos-13]
55+
os: [macos-13, macos-14, macos-15]
4856
runs-on: ${{ matrix.os }}
4957

5058
steps:
5159
- name: Installation of dependencies
5260
run: |
5361
brew install \
54-
boost gdal curl qt6 \
55-
gnuplot
62+
boost gdal curl qt6 \
63+
gnuplot
64+
- name: Installation of pandoc
65+
uses: r-lib/actions/setup-pandoc@v2
5666
- name: Checkout of source code
5767
uses: actions/checkout@v3
5868
- name: Preparation

‎.github/workflows/macos-packaging.yaml

+11-12
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,31 @@ on:
1010

1111

1212
jobs:
13+
1314
build-packaging:
1415
strategy:
1516
matrix:
16-
os: [macos-10.15,macos-11,macos-12]
17+
os: [macos-13, macos-14, macos-15]
1718
runs-on: ${{ matrix.os }}
1819

1920
steps:
20-
- name: Checkout
21-
uses: actions/checkout@v3
22-
with:
23-
ref: ${{ github.event.inputs.reference }}
24-
2521
- name: Installation of dependencies
2622
run: |
2723
brew update
2824
brew install \
29-
boost gdal qt5 \
30-
doxygen gnuplot doxygen
25+
boost gdal curl qt6 \
26+
gnuplot
27+
28+
- name: Checkout
29+
uses: actions/checkout@v3
3130

3231
- name: Preparation
3332
run: |
34-
echo "$(brew --prefix qt5)/bin" >> $GITHUB_PATH
35-
mkdir ./_build && ls
33+
echo "$(brew --prefix qt6)/bin" >> $GITHUB_PATH
34+
mkdir ./_build
3635
3736
- name: Configuration
38-
run: cmake .. -DCMAKE_PREFIX_PATH=$(brew --prefix qt5)/lib/cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local
37+
run: cmake .. -DCMAKE_PREFIX_PATH=$(brew --prefix qt6)/lib/cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local
3938
working-directory: ./_build
4039

4140
- name: Build
@@ -49,7 +48,7 @@ jobs:
4948
working-directory: ./_build
5049

5150
- name: Uploading artifacts
52-
uses: actions/upload-artifact@v2
51+
uses: actions/upload-artifact@v4
5352
with:
5453
name: ${{ matrix.os }}_${{ github.event.inputs.reference }}
5554
path: ./_build/_osx_brewcask/openfluid*

‎cmake/internal/OpenFLUIDSystemInfo.cmake

+7-15
Original file line numberDiff line numberDiff line change
@@ -150,24 +150,16 @@ IF(UNIX AND NOT CYGWIN)
150150

151151
EXECUTE_PROCESS(COMMAND "sw_vers" "-productVersion" OUTPUT_VARIABLE OFBUILD_SYSTEM_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
152152

153-
IF(${OFBUILD_SYSTEM_VERSION} MATCHES "12\..*")
153+
IF(${OFBUILD_SYSTEM_VERSION} MATCHES "15\..*")
154+
SET(OFBUILD_SYSTEM_CODE "sequoia")
155+
ELSEIF(${OFBUILD_SYSTEM_VERSION} MATCHES "14\..*")
156+
SET(OFBUILD_SYSTEM_CODE "sonoma")
157+
ELSEIF(${OFBUILD_SYSTEM_VERSION} MATCHES "13\..*")
158+
SET(OFBUILD_SYSTEM_CODE "ventura")
159+
ELSEIF(${OFBUILD_SYSTEM_VERSION} MATCHES "12\..*")
154160
SET(OFBUILD_SYSTEM_CODE "monterey")
155161
ELSEIF(${OFBUILD_SYSTEM_VERSION} MATCHES "11\..*")
156162
SET(OFBUILD_SYSTEM_CODE "big_sur")
157-
ELSEIF(${OFBUILD_SYSTEM_VERSION} MATCHES "10\.15.*")
158-
SET(OFBUILD_SYSTEM_CODE "catalina")
159-
ELSEIF(${OFBUILD_SYSTEM_VERSION} MATCHES "10\.14.*")
160-
SET(OFBUILD_SYSTEM_CODE "mojave")
161-
ELSEIF(${OFBUILD_SYSTEM_VERSION} MATCHES "10\.13.*")
162-
SET(OFBUILD_SYSTEM_CODE "high_sierra")
163-
ELSEIF(${OFBUILD_SYSTEM_VERSION} MATCHES "10\.12.*")
164-
SET(OFBUILD_SYSTEM_CODE "sierra")
165-
ELSEIF(${OFBUILD_SYSTEM_VERSION} MATCHES "10\.11.*")
166-
SET(OFBUILD_SYSTEM_CODE "el_capitan")
167-
ELSEIF(${OFBUILD_SYSTEM_VERSION} MATCHES "10\.10.*")
168-
SET(OFBUILD_SYSTEM_CODE "yosemite")
169-
ELSEIF(${OFBUILD_SYSTEM_VERSION} MATCHES "10\.9.*")
170-
SET(OFBUILD_SYSTEM_CODE "mavericks")
171163
ENDIF()
172164
ENDIF()
173165
ENDIF()

‎resources/packaging/macosx/openfluid.rb.in

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ cask 'openfluid@TOKEN_VERSION@' do
1616
# external dependencies
1717
depends_on formula: 'boost'
1818
depends_on formula: 'gdal'
19-
depends_on formula: 'qt5'
19+
depends_on formula: 'qt6'
2020
depends_on formula: 'p7zip'
2121
depends_on formula: 'gnuplot'
2222
depends_on formula: 'cmake'
23+
depends_on formula: 'pandoc'
2324

2425

2526
# system dependencies
26-
depends_on macos: '>= :yosemite'
27+
depends_on macos: '>= :big_sur'
2728

2829

2930
# variables used during installation process

0 commit comments

Comments
 (0)
Please sign in to comment.