Skip to content

Commit 07a4e58

Browse files
committed
macOS
1 parent cbadf47 commit 07a4e58

File tree

2 files changed

+39
-25
lines changed

2 files changed

+39
-25
lines changed

.circleci/config.yml

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -192,19 +192,33 @@ jobs:
192192
default: "fp-x86-20-v2"
193193
<<: *flatpak-steps
194194

195-
#build-macos:
196-
# macos:
197-
# xcode: "12.5.1"
198-
# environment:
199-
# - OCPN_TARGET: macos
200-
# - CMAKE_BUILD_PARALLEL_LEVEL: 2
201-
# steps:
202-
# - checkout
203-
# - run: ci/circleci-build-macos.sh
204-
# - run: >
205-
# sh -c "otool -L build-osx/app/*/OpenCPN.app/Contents/PlugIns/*.dylib"
206-
# - run: cd build-osx; /bin/bash < upload.sh
207-
# - run: ci/git-push.sh build-osx
195+
build-macos:
196+
macos:
197+
xcode: "12.5.1"
198+
environment:
199+
- OCPN_TARGET: macos
200+
- CMAKE_BUILD_PARALLEL_LEVEL: 2
201+
steps:
202+
- checkout
203+
- run: sudo chmod go+w /usr/local
204+
- restore_cache:
205+
key: "{{checksum \"build-deps/macos-cache-stamp\"}}\
206+
-{{checksum \"cmake/MacosWxwidgets.cmake\"}}\
207+
-{{checksum \"ci/circleci-build-macos.sh\"}}"
208+
- run: ci/circleci-build-macos.sh
209+
- save_cache:
210+
key: "{{checksum \"build-deps/macos-cache-stamp\"}}\
211+
-{{checksum \"cmake/MacosWxwidgets.cmake\"}}\
212+
-{{checksum \"ci/circleci-build-macos.sh\"}}"
213+
paths:
214+
- /tmp/local.cache.tar
215+
- /Users/distiller/project/cache
216+
- run: >
217+
sh -c "otool -L build-osx/app/*/OpenCPN.app/Contents/PlugIns/*.dylib"
218+
- run: ci/verify-result.sh build-osx
219+
- run: cd build-osx; /bin/bash < upload.sh
220+
- run: ci/git-push.sh build-osx
221+
208222

209223
#TODO: wxStyledTextCtrl does not exist in wxQT, so we would have to replace it.
210224
# And there will be more for sure.
@@ -250,9 +264,9 @@ workflows:
250264
- build-flatpak-x86:
251265
<<: *std-filters
252266

253-
# - build-macos:
254-
# <<: *std-filters
255-
#
267+
- build-macos:
268+
<<: *std-filters
269+
256270
# - build-android-arm64:
257271
# <<: *std-filters
258272
#

.github/workflows/macos.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ jobs:
3434
cmake_defines: -DCMAKE_CXX_STANDARD=17
3535
use_homebrew: 1
3636
push_cloudsmith: 0
37-
- name: macOS 11 wxOSX
38-
runner: macos-11
39-
cmake_generator: Xcode
40-
cmake_defines: -DCMAKE_CXX_STANDARD=11 -DwxWidgets_CONFIG_EXECUTABLE=/tmp/wx322-2_opencpn50_macos1010/bin/wx-config -DwxWidgets_CONFIG_OPTIONS="--prefix=/tmp/wx322-2_opencpn50_macos1010"
41-
push_cloudsmith: 1
42-
- name: macOS 10.15 wxOSX
43-
runner: macos-10.15
44-
cmake_generator: Xcode
45-
cmake_defines: -DCMAKE_CXX_STANDARD=11 -DwxWidgets_CONFIG_EXECUTABLE=/tmp/wx322-2_opencpn50_macos1010/bin/wx-config -DwxWidgets_CONFIG_OPTIONS="--prefix=/tmp/wx322-2_opencpn50_macos1010"
37+
#- name: macOS 11 wxOSX
38+
# runner: macos-11
39+
# cmake_generator: Xcode
40+
# cmake_defines: -DCMAKE_CXX_STANDARD=11 -DwxWidgets_CONFIG_EXECUTABLE=/tmp/wx322-2_opencpn50_macos1010/bin/wx-config -DwxWidgets_CONFIG_OPTIONS="--prefix=/tmp/wx322-2_opencpn50_macos1010"
41+
# push_cloudsmith: 1
42+
#- name: macOS 10.15 wxOSX
43+
# runner: macos-10.15
44+
# cmake_generator: Xcode
45+
# cmake_defines: -DCMAKE_CXX_STANDARD=11 -DwxWidgets_CONFIG_EXECUTABLE=/tmp/wx322-2_opencpn50_macos1010/bin/wx-config -DwxWidgets_CONFIG_OPTIONS="--prefix=/tmp/wx322-2_opencpn50_macos1010"
4646

4747
env:
4848
wxGTK_VERSION: ${{ matrix.gtk_version && matrix.gtk_version || 3 }}

0 commit comments

Comments
 (0)