Skip to content

Adds old code

Adds old code #96

name: "Build and Test (MacOS)"
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
BUILD_TYPE: Release
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build_and_test_macos:
name: Build and Test (MacOS)
runs-on: macos-11
strategy:
fail-fast: false
matrix:
qt_ver:
- 5.15.2
- 5.12.8
steps:
- name: "Checkout"
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: "Install Qt"
uses: jurplel/install-qt-action@v2
with:
version: ${{ matrix.qt_ver }}
- name: "Create Build Environment"
run: cmake -E make_directory ${{runner.workspace}}/build
- name: "Configure CMake"
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake ${{runner.workspace}}/qfm1000 -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: "Build"
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --config $BUILD_TYPE --parallel
- name: "Test"
working-directory: ${{runner.workspace}}/build
shell: bash
run: ctest -C $BUILD_TYPE --output-on-failure