Add support to allow uchmviewer to be built as a vcpkg port #76
This file contains hidden or 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: macOS Build Tests | |
| on: | |
| push: | |
| branches-ignore: | |
| - master | |
| - release | |
| - gha | |
| - Qt4 | |
| - Qt4-dev | |
| tags-ignore: '*' | |
| paths-ignore: '/.github/workflows/release.yml' | |
| pull_request: | |
| env: | |
| QT_VERSION: 5.14.1 | |
| QT_PACKAGES: qtwebengine | |
| ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
| jobs: | |
| build: | |
| name: ${{ matrix.config.name }} | |
| runs-on: ${{ matrix.config.os }} | |
| #continue-on-error: true | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - { | |
| name: "Cmake : Qt5 + WebEngine", | |
| os: macos-13, | |
| setup: "cmake -DUSE_STATIC_CHMLIB=ON -DUSE_WEBENGINE=ON .", | |
| build: "cmake --build . --config Release", | |
| install: "sudo cmake --install . --config Release" | |
| } | |
| - { | |
| name: "qmake : Qt5 + WebEngine", | |
| os: macos-13, | |
| setup: 'qmake -r -early "QMAKE_DEFAULT_LIBDIRS=$(xcrun -show-sdk-path)/usr/lib" "USE_STATIC_CHMLIB=1" "USE_WEBENGINE=1" "LIBZIP_ROOT=/usr/local"', | |
| build: "make", | |
| install: "echo skip" | |
| } | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Install Qt | |
| uses: jurplel/install-qt-action@v4 | |
| with: | |
| version: ${{ env.QT_VERSION }} | |
| modules: ${{ env.QT_PACKAGES }} | |
| - name: Build & install libzip | |
| shell: bash | |
| run: | | |
| cd ../ | |
| git clone https://github.com/nih-at/libzip.git | |
| cd libzip | |
| git checkout v1.7.3 | |
| mkdir build | |
| cd build | |
| cmake .. | |
| cmake --build . --config Release | |
| sudo cmake --install . --config Release | |
| - name: Setup project | |
| run: ${{ matrix.config.setup }} | |
| - name: Build project | |
| run: ${{ matrix.config.build }} | |
| - name: Install project | |
| shell: bash | |
| run: ${{ matrix.config.install }} |