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 8064a01
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 5 deletions.
28 changes: 28 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,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 --mac=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
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@
};
696FF135289DAECB000D3C3F /* Release_MAS */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 699401DD289DA67700A46D3F /* Release_MAS.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
Expand Down Expand Up @@ -601,6 +602,7 @@
};
696FF136289DAECB000D3C3F /* Release_MAS */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 699401DD289DA67700A46D3F /* Release_MAS.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
BUNDLE_LOADER = "$(TEST_HOST)";
Expand All @@ -614,6 +616,7 @@
};
696FF137289DAECB000D3C3F /* Release_MAS */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 699401DD289DA67700A46D3F /* Release_MAS.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand All @@ -626,6 +629,7 @@
};
696FF138289DAECB000D3C3F /* Release_MAS */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 699401DD289DA67700A46D3F /* Release_MAS.xcconfig */;
buildSettings = {
CODE_SIGN_ENTITLEMENTS = "Scratch Link Safari Extension/Scratch_Link_Safari_Extension.entitlements";
ENABLE_HARDENED_RUNTIME = YES;
Expand Down Expand Up @@ -703,6 +707,7 @@
};
696FF13A289DAED8000D3C3F /* Release_DevID */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 699401DC289DA65C00A46D3F /* Release_DevID.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
Expand Down Expand Up @@ -732,6 +737,7 @@
};
696FF13B289DAED8000D3C3F /* Release_DevID */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 699401DC289DA65C00A46D3F /* Release_DevID.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
BUNDLE_LOADER = "$(TEST_HOST)";
Expand All @@ -745,6 +751,7 @@
};
696FF13C289DAED8000D3C3F /* Release_DevID */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 699401DC289DA65C00A46D3F /* Release_DevID.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand All @@ -757,6 +764,7 @@
};
696FF13D289DAED8000D3C3F /* Release_DevID */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 699401DC289DA65C00A46D3F /* Release_DevID.xcconfig */;
buildSettings = {
CODE_SIGN_ENTITLEMENTS = "Scratch Link Safari Extension/Scratch_Link_Safari_Extension.entitlements";
ENABLE_HARDENED_RUNTIME = YES;
Expand Down Expand Up @@ -887,6 +895,7 @@
};
69E9620127E28B88008CF7C0 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 699401D9289DA5E600A46D3F /* Debug.xcconfig */;
buildSettings = {
CODE_SIGN_ENTITLEMENTS = "Scratch Link Safari Extension/Scratch_Link_Safari_Extension.entitlements";
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -911,6 +920,7 @@
};
69E9620227E28B88008CF7C0 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 699401DB289DA64100A46D3F /* Release.xcconfig */;
buildSettings = {
CODE_SIGN_ENTITLEMENTS = "Scratch Link Safari Extension/Scratch_Link_Safari_Extension.entitlements";
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -935,6 +945,7 @@
};
69E9620527E28B88008CF7C0 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 699401D9289DA5E600A46D3F /* Debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
Expand Down Expand Up @@ -964,6 +975,7 @@
};
69E9620627E28B88008CF7C0 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 699401DB289DA64100A46D3F /* Release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
Expand Down Expand Up @@ -993,6 +1005,7 @@
};
69E9620827E28B88008CF7C0 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 699401D9289DA5E600A46D3F /* Debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
BUNDLE_LOADER = "$(TEST_HOST)";
Expand All @@ -1006,6 +1019,7 @@
};
69E9620927E28B88008CF7C0 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 699401DB289DA64100A46D3F /* Release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
BUNDLE_LOADER = "$(TEST_HOST)";
Expand All @@ -1019,6 +1033,7 @@
};
69E9620B27E28B88008CF7C0 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 699401D9289DA5E600A46D3F /* Debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand All @@ -1031,6 +1046,7 @@
};
69E9620C27E28B88008CF7C0 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 699401DB289DA64100A46D3F /* Release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand All @@ -1053,7 +1069,7 @@
696FF134289DAECB000D3C3F /* Release_MAS */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
defaultConfigurationName = Debug;
};
69E9620027E28B88008CF7C0 /* Build configuration list for PBXNativeTarget "Scratch Link Safari Extension" */ = {
isa = XCConfigurationList;
Expand All @@ -1064,7 +1080,7 @@
696FF138289DAECB000D3C3F /* Release_MAS */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
defaultConfigurationName = Debug;
};
69E9620427E28B88008CF7C0 /* Build configuration list for PBXNativeTarget "Scratch Link Safari Helper" */ = {
isa = XCConfigurationList;
Expand All @@ -1075,7 +1091,7 @@
696FF135289DAECB000D3C3F /* Release_MAS */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
defaultConfigurationName = Debug;
};
69E9620727E28B88008CF7C0 /* Build configuration list for PBXNativeTarget "Scratch Link Safari HelperTests" */ = {
isa = XCConfigurationList;
Expand All @@ -1086,7 +1102,7 @@
696FF136289DAECB000D3C3F /* Release_MAS */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
defaultConfigurationName = Debug;
};
69E9620A27E28B88008CF7C0 /* Build configuration list for PBXNativeTarget "Scratch Link Safari HelperUITests" */ = {
isa = XCConfigurationList;
Expand All @@ -1097,7 +1113,7 @@
696FF137289DAECB000D3C3F /* Release_MAS */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
defaultConfigurationName = Debug;
};
/* End XCConfigurationList section */
};
Expand Down

0 comments on commit 8064a01

Please sign in to comment.