diff --git a/.github/actions/macos-build/action.yml b/.github/actions/macos-build/action.yml index fb4e594..9bf9ab8 100644 --- a/.github/actions/macos-build/action.yml +++ b/.github/actions/macos-build/action.yml @@ -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: @@ -20,6 +26,28 @@ inputs: runs: using: composite steps: + - name: Set Xcode version + shell: bash + run: | + 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: | + cat "$VM_ASSETS/select-xamarin-sdk-v2.sh" + $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 }}