Skip to content

Commit a08686e

Browse files
committed
Merge branch 'master' of github.com:ngscopeclient/scopehal-apps
2 parents cbeb028 + 1e1f6ac commit a08686e

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/build-macos-intel.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ jobs:
9191
cd build
9292
ninja
9393
94+
- name: Build Package
95+
if: ${{ ! matrix.docs }}
96+
run: |
97+
cd build
98+
cpack -G Bundle
99+
94100
- name: Run Tests
95101
if: ${{ false }} # Metal is not available on GH macOS runners
96102
run: |
@@ -107,3 +113,9 @@ jobs:
107113
build/src/ngscopeclient/shaders/*
108114
build/lib/scopehal/libscopehal.dylib
109115
build/lib/scopeprotocols/libscopeprotocols.dylib
116+
117+
- name: Upload Package
118+
uses: actions/upload-artifact@v4
119+
with:
120+
name: ngscopeclient-${{ runner.os }}-${{ github.job }}-package
121+
path: build/*.dmg

src/ngscopeclient/CMakeLists.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,20 @@ if(APPLE)
253253
set(APPS "\${CMAKE_INSTALL_PREFIX}/bin/ngscopeclient")
254254
set(DIRS "\${CMAKE_INSTALL_PREFIX}/lib")
255255
set(FRAMEWORKS "\${CMAKE_INSTALL_PREFIX}/Frameworks")
256+
execute_process(
257+
COMMAND brew --prefix molten-vk
258+
RESULT_VARIABLE MOLTEN_VK_RESULT
259+
OUTPUT_VARIABLE MOLTEN_VK_OUTPUT
260+
ERROR_QUIET
261+
OUTPUT_STRIP_TRAILING_WHITESPACE
262+
)
263+
if(NOT MOLTEN_VK_RESULT EQUAL 0)
264+
message(FATAL_ERROR "failed to find Homebrew prefix for molten-vk")
265+
endif()
256266
# https://vulkan.lunarg.com/doc/view/1.3.275.0/mac/getting_started.html#application-bundle-structure-on-macos
257267
install(FILES "${CMAKE_SOURCE_DIR}/src/ngscopeclient/macos/MoltenVK_icd.json"
258268
DESTINATION bin/vulkan/icd.d/)
259-
install(FILES "/opt/homebrew/opt/molten-vk/lib/libMoltenVK.dylib" DESTINATION lib)
269+
install(FILES "${MOLTEN_VK_OUTPUT}/lib/libMoltenVK.dylib" DESTINATION lib)
260270
install(CODE "
261271
include(BundleUtilities)
262272
fixup_bundle(\"${APPS}\" \"lib/libMoltenVK.dylib\" \"${DIRS}\")

0 commit comments

Comments
 (0)