deskflow/.github/workflows/job-test-mac.yml
Kyle Bloom 14513c8c48
Update macos workflow to use macos-latest (#7210)
* fix: Update macos workflow to use macos-latest

* chore: Update changelog
2022-08-04 09:43:31 +01:00

49 lines
1.1 KiB
YAML

name: Mac
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test-macos:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: ${{ matrix.shell }}
strategy:
matrix:
include:
- os: "macos-latest"
target: "10.14"
shell: "bash"
- os: [self-hosted, macOS, arm64]
target: ""
shell: "/usr/bin/arch -arch arm64e /bin/bash --noprofile --norc -eo pipefail {0}"
env:
GIT_COMMIT: ${{ github.sha }}
steps:
- uses: actions/checkout@v2
- name: Install brew dependencies
run: brew bundle --file=- <<< "brew 'qt5'; brew 'openssl'"
- name: Build
env:
CMAKE_OSX_DEPLOYMENT_TARGET: ${{ matrix.target }}
run: |
mkdir build
cd build
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH="$(brew --prefix qt5);$(brew --prefix openssl)" ..
. ./version
make -j
- name: Run unit test
run: ./build/bin/unittests