Skip to content

Commit 116f948

Browse files
authored
fix: Ci for FreeBSD Qt6 (#137)
1 parent d70d920 commit 116f948

2 files changed

Lines changed: 32 additions & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ jobs:
3838
run: |
3939
mkdir -p build
4040
cd build
41-
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSTELLARIUM_RELEASE_BUILD=Off -DENABLE_TESTING=On "${{ github.workspace }}"
41+
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
42+
-DSTELLARIUM_RELEASE_BUILD=Off \
43+
-DENABLE_TESTING=On \
44+
"${{ github.workspace }}"
4245
4346
- name: Compile
4447
working-directory: build
@@ -162,7 +165,10 @@ jobs:
162165
export PATH="/opt/homebrew/opt/qt@5/bin:/usr/local/opt/qt@5/bin:$PATH"
163166
mkdir -p build
164167
cd build
165-
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSTELLARIUM_RELEASE_BUILD=Off -DENABLE_TESTING=On ${{ github.workspace }}
168+
cmake -DCMAKE_PREFIX_PATH="/opt/homebrew;/usr/local" \
169+
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
170+
-DSTELLARIUM_RELEASE_BUILD=Off \
171+
-DENABLE_TESTING=On ${{ github.workspace }}
166172
167173
- name: Compile
168174
working-directory: build
@@ -198,10 +204,13 @@ jobs:
198204
- name: Configure CMake
199205
shell: bash
200206
run: |
201-
export PATH="/usr/local/opt/qt@6/bin:$PATH"
207+
export PATH="/usr/local/opt/qt@6:$PATH"
202208
mkdir -p build
203209
cd build
204-
cmake -DCMAKE_PREFIX_PATH="/usr/local/opt/qt@6;/usr/local/opt/tidy-html5" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSTELLARIUM_RELEASE_BUILD=Off -DENABLE_TESTING=On ${{ github.workspace }}
210+
cmake -DCMAKE_PREFIX_PATH="/usr/local" \
211+
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
212+
-DSTELLARIUM_RELEASE_BUILD=Off \
213+
-DENABLE_TESTING=On ${{ github.workspace }}
205214
206215
- name: Compile
207216
working-directory: build
@@ -240,10 +249,14 @@ jobs:
240249
- name: Configure CMake
241250
shell: bash
242251
run: |
243-
export PATH="/usr/local/opt/qt@6/bin:$PATH"
252+
export PATH="/opt/homebrew/opt/qt@6/bin:$PATH"
244253
mkdir -p build
245254
cd build
246-
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSTELLARIUM_RELEASE_BUILD=Off -DENABLE_TESTING=On ${{ github.workspace }}
255+
cmake -DCMAKE_PREFIX_PATH="/opt/homebrew" \
256+
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
257+
-DSTELLARIUM_RELEASE_BUILD=Off \
258+
-DENABLE_TESTING=On \
259+
${{ github.workspace }}
247260
248261
- name: Compile
249262
working-directory: build
@@ -282,7 +295,10 @@ jobs:
282295
export DISPLAY=:0
283296
mkdir builds
284297
cd builds
285-
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSTELLARIUM_RELEASE_BUILD=Off -DENABLE_TESTING=On "${{ github.workspace }}"
298+
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
299+
-DSTELLARIUM_RELEASE_BUILD=Off \
300+
-DENABLE_TESTING=On \
301+
"${{ github.workspace }}"
286302
make -j3
287303
Xvfb :0 -ac -screen 0 1024x768x24+32 >/dev/null 2>&1 &
288304
sleep 3
@@ -310,14 +326,21 @@ jobs:
310326
# When using rsync, you can define copyback: false to not copy files back from the VM in to the host.
311327
copyback: false
312328
prepare: |
313-
pkg install -y cmake git eigen glm exiv2 nlopt fast_float md4c qxlsx-qt6 perl5 xorg-vfbserver gettext qt6 tidy-html5 unarr
329+
pkg install -y cmake git eigen glm exiv2 nlopt fast_float md4c qxlsx-qt6 perl5 xorg-vfbserver gettext qt6 tidy-html5
314330
315331
run: |
316332
set -e -x
317333
export DISPLAY=:0
334+
export CMAKE_PREFIX_PATH="/usr/local:$CMAKE_PREFIX_PATH"
318335
mkdir builds
319336
cd builds
320-
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSTELLARIUM_RELEASE_BUILD=Off -DENABLE_TESTING=On "${{ github.workspace }}"
337+
cmake -DCMAKE_PREFIX_PATH="/usr/local" \
338+
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
339+
-DSTELLARIUM_RELEASE_BUILD=Off \
340+
-DENABLE_TESTING=On \
341+
-DLIBTIDY_INCLUDE_DIR="/usr/local/include" \
342+
-DLIBTIDY_LIBRARY="/usr/local/lib/libtidy5.so" \
343+
"${{ github.workspace }}"
321344
make -j3
322345
Xvfb :0 -ac -screen 0 1024x768x24+32 >/dev/null 2>&1 &
323346
sleep 3

plugins/SkyCultureMaker/CMakeLists.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@ IF(SCM_SHOULD_ENABLE_CONVERTER AND NOT (QT_VERSION_MAJOR EQUAL "5"))
99
SET(SCM_CONVERTER_ENABLED TRUE)
1010
MESSAGE(STATUS "Sky Culture Converter will be enabled.")
1111

12-
# On macOS, Homebrew is a common way to install dependencies.
13-
# We should look for it in the default locations for Apple Silicon and Intel macs
14-
# to find the correct version of libtidy. Otherwise a system library might be used.
15-
IF(APPLE)
16-
LIST(APPEND CMAKE_PREFIX_PATH "/opt/homebrew" "/usr/local")
17-
ENDIF()
18-
1912
# download https://github.com/Stellarium/stellarium-skyculture-converter
2013
CPMAddPackage(
2114
NAME StellariumSkyCultureConverter

0 commit comments

Comments
 (0)