Update to Preflight Checks resizing #1729
This file contains 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: OSX Build | |
on: [push, workflow_dispatch, pull_request] | |
jobs: | |
buildIOS: | |
name: Build IOS | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
fetch-depth: 10 | |
- name: Cache multiple paths | |
uses: actions/cache@v2 | |
with: | |
path: | | |
**/obj/** | |
key: ${{ runner.os }}-buildIOS | |
- name: Build | |
shell: pwsh | |
run: | | |
msbuild -ver | |
dotnet --version | |
dotnet --list-sdks | |
msbuild -v:m -restore -p:Configuration=Release "ExtLibs\Xamarin\Xamarin.iOS\Xamarin.iOS.csproj" | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ios | |
path: ExtLibs/Xamarin/Xamarin.iOS/bin/iPhoneSimulator/Release/ | |
buildOSX: | |
name: Build OSX | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
fetch-depth: 10 | |
- name: Set default Xcode 14.0.1 | |
run: | | |
XCODE_ROOT=/Applications/Xcode_14.0.1.app | |
echo "MD_APPLE_SDK_ROOT=$XCODE_ROOT" >> $GITHUB_ENV | |
sudo xcode-select -s $XCODE_ROOT | |
- name: Cache multiple paths | |
uses: actions/cache@v2 | |
with: | |
path: | | |
**/obj/** | |
key: ${{ runner.os }}-buildOSX | |
- name: Build | |
shell: pwsh | |
run: | | |
msbuild -ver | |
dotnet --version | |
dotnet --list-sdks | |
msbuild -v:m -restore -p:Configuration=Release "ExtLibs\Xamarin\Xamarin.MacOS\Xamarin.MacOS.csproj" | |
- name: Package | |
shell: pwsh | |
continue-on-error: true | |
run: | | |
npm install --global create-dmg | |
cd ExtLibs/Xamarin/Xamarin.MacOS/bin/Release/ | |
create-dmg 'Mission Planner.app' --dmg-title='Mission Planner' | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: osx | |
path: | | |
ExtLibs/Xamarin/Xamarin.MacOS/bin/Release/*.dmg | |
- uses: "marvinpinto/[email protected]" | |
if: ${{ github.event_name == 'push' }} | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "osxlatest" | |
prerelease: true | |
title: "OSX Development Build" | |
files: '**/*.dmg' |