Skip to content

Update macos_debug.yml #4

Update macos_debug.yml

Update macos_debug.yml #4

Workflow file for this run

name: MacOS Debug and Tests
on:
push:
branches:
- 'master'
- 'main'
- 'Stable*'
tags:
- 'v*'
paths-ignore:
- 'docs/**'
pull_request:
branches:
- '*'
paths-ignore:
- 'docs/**'
defaults:
run:
shell: bash
env:
SOURCE_DIR: ${{ github.workspace }}
QT_VERSION: 6.6.*
ARTIFACT: QGroundControl.dmg
BUILD_TYPE: ${{ fromJSON('["DailyBuild", "StableBuild"]')[ github.ref_type == 'tag' || contains(github.ref, 'Stable_' ) ] }}
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: ccache
uses: hendrikmuhs/[email protected]
with:
create-symlink: true
key: ${{ runner.os }}-Debug
restore-keys: ${{ runner.os }}-Debug
max-size: "2G"
append-timestamp: false
- name: Get all tags for correct version determination
working-directory: ${{ github.workspace }}
run: |
git fetch --all --tags -f --depth 1
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ env.QT_VERSION }}
aqtversion: ==3.1.*
host: mac
target: desktop
dir: ${{ runner.temp }}
modules: qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtserialport qtimageformats qtshadertools qtconnectivity qtquick3d
setup-python: false
cache: true
- name: Install Dependencies
run: brew install ninja SDL2
- name: Setup GStreamer
uses: blinemedical/setup-gstreamer@v1
with:
version: 1.18.6
- name: Create build directory
run: mkdir ${{ runner.temp }}/shadow_build_dir
- name: Build
working-directory: ${{ runner.temp }}/shadow_build_dir
run: |
export JOBS=$((`sysctl -n hw.ncpu`+1))
qmake -r ${SOURCE_DIR}/qgroundcontrol.pro CONFIG+=installer CONFIG+=${BUILD_TYPE}
make -j$JOBS -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"
- name: Upload Build File
uses: ./.github/actions/upload
with:
artifact_name: ${{ env.ARTIFACT }}
# - name: Run unit tests
# working-directory: ${{ runner.temp }}/shadow_build_dir
# run: open ${{ runner.temp }}/shadow_build_dir/staging/QGroundControl.app --args --unittest