Skip to content

Commit

Permalink
ci: fix macOS build on GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
cwillisf committed Aug 23, 2023
1 parent a503458 commit 0ef9d6e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/actions/macos-build/action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#Xamarin.Mac -> 6.12
#iOS 16.2 -> 16.4
#macOS (Cocoa) 9.1 -> 9.3
#.NET -> 6.0
#.NET -> 7.0
#Visual Studio 17.5 -> 17.6
name: Build for macOS
description: Core build steps for macOS
inputs:
Expand All @@ -20,6 +26,27 @@ inputs:
runs:
using: composite
steps:
- name: Set Xcode version
shell: bash
run: |
ls -ld /Applications/Xcode*
XCODE_ROOT=/Applications/Xcode_14.2.app
echo "MD_APPLE_SDK_ROOT=$XCODE_ROOT" >> $GITHUB_ENV
sudo xcode-select -s $XCODE_ROOT
- name: Setup Xamarin
shell: bash
run: $VM_ASSETS/select-xamarin-sdk-v2.sh --mono=6.12 --macos=9.1 --ios=16.2
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- uses: actions/cache@v3
with:
path: ~/.nuget/packages
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget
- name: Build Safari helper
env:
AC_USERNAME: ${{ inputs.ac_username }}
Expand Down

0 comments on commit 0ef9d6e

Please sign in to comment.