mirror of
https://github.com/deskflow/deskflow.git
synced 2026-07-07 21:07:23 +08:00
* Change cmake to use find_package for openssl * Change cmake prefix paths * Fix Qt prefix path * Limit static to apple * Re-add qt bin path * Fix use of apple cmake variable * Update ChangeLog * Update CMake prefix path for mac and windows tests * Fix windows test * Seems to fix mac test * Brew defined prefix paths * Explicitly ensure all homebrew dependencies
37 lines
744 B
YAML
37 lines
744 B
YAML
name: Mac
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build-arch64:
|
|
runs-on: macos-10.15
|
|
|
|
env:
|
|
GIT_COMMIT: ${{ github.sha }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install brew dependencies
|
|
run: |
|
|
brew list qt5 &>/dev/null || brew install qt5
|
|
brew list openssl &>/dev/null || brew install openssl
|
|
|
|
- name: Build
|
|
run: |
|
|
mkdir build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_PREFIX_PATH="$(brew --prefix qt5);$(brew --prefix openssl)" ..
|
|
. ./version
|
|
make -j
|
|
|
|
- name: Run unit test
|
|
run: ./build/bin/unittests
|