Cmake cleanups #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build-macOS-arm64 | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
macOS: | |
runs-on: macos-latest-arm64 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Dependencies | |
run: | | |
brew uninstall pkg-config | |
brew install \ | |
pkgconf \ | |
[email protected] \ | |
libsigc++@2 \ | |
glfw \ | |
cmake \ | |
yaml-cpp \ | |
catch2 \ | |
libomp \ | |
vulkan-headers \ | |
vulkan-loader \ | |
spirv-tools \ | |
glslang \ | |
shaderc \ | |
molten-vk \ | |
ninja | |
- name: Build | |
run: | | |
mkdir build | |
cd build | |
cmake \ | |
-G Ninja \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DBUILD_DOCS=OFF \ | |
-DBUILD_TESTING=ON \ | |
-DCMAKE_PREFIX_PATH=$(brew --prefix):$(brew --prefix)/opt/libomp \ | |
.. | |
ninja | |
- name: Run Tests | |
if: ${{ false }} # Temporary disable Run Tests | |
run: | | |
cd build | |
ninja test | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ngscopeclient-macos | |
path: | | |
build/src/ngscopeclient/ngscopeclient | |
build/src/ngscopeclient/icons/* | |
build/src/ngscopeclient/shaders/* | |
build/lib/scopehal/libscopehal.dylib | |
build/lib/scopeprotocols/libscopeprotocols.dylib | |
- name: Upload Documentation | |
if: ${{ false }} # a LaTeX toolchain for macOS takes a while to install, so skip for now | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ngscopeclient-manual | |
path: build/doc/ngscopeclient-manual.pdf |