Skip to content

Commit

Permalink
Xcode 14 (square#432)
Browse files Browse the repository at this point in the history
* update to xcode 14

* update swiftformat

* add ios 16 to test matrix

* delete ios 12 & 13 snapshot references

* update to macos-12

* switch from xcversion to xcodes

* install xcodes

* xcodes needs sudo

* update cocoapods sim target

* update ios 14.5 sim target

* disable performance playground

* fix snapshot archive path

* use a 2x device on ios 14.5

* persist spm generated schemes

* imperceptible ci snapshot differences

* speed up xcodes with aria2

* document gitignore change
  • Loading branch information
watt authored Feb 23, 2023
1 parent 9e75ebd commit 7c5c6b7
Show file tree
Hide file tree
Showing 458 changed files with 328 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
build:
name: Generate docs with jazzy and publish to Github pages
runs-on: macos-11
runs-on: macos-12

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/env.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
xcode_version=13.1
xcode_version=14.2
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
lint:
name: Lint Swift code with SwiftFormat
runs-on: macos-11
runs-on: macos-12

steps:
- name: Checkout
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md

name: Tests

on:
Expand All @@ -12,18 +10,21 @@ jobs:
spm:
name: "iOS ${{ matrix.sdk }}"

runs-on: macos-11
runs-on: macos-12

strategy:
fail-fast: false # Don’t fail-fast so that we get all snapshot test changes
matrix:
include:
- sdk: "14.5"
destination: platform=iOS Simulator,OS=14.5,name=iPhone 8
destination: platform=iOS Simulator,OS=14.5,name=iPad (8th generation)

- sdk: "15.0"
destination: platform=iOS Simulator,OS=15.0,name=iPhone 8

- sdk: "16.2"
destination: platform=iOS Simulator,OS=16.2,name=iPhone 8

steps:
- uses: actions/checkout@v1

Expand All @@ -33,8 +34,11 @@ jobs:
- name: Switch to Xcode ${{ env.xcode_version }}
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcode_version }}.app

- name: Install xcodes
run: brew install aria2 robotsandpencils/made/xcodes

- name: Install iOS ${{ matrix.sdk }}
run: xcversion simulators --install="iOS ${{ matrix.sdk }}"
run: sudo xcodes runtimes install "iOS ${{ matrix.sdk }}"

- name: Build & Test
run: |
Expand All @@ -43,7 +47,7 @@ jobs:
- name: Package snapshot changes
if: ${{ failure() }}
run: |
git ls-files -mo BlueprintUICommonControls/Tests/Sources/ReferenceImages | xargs tar -cvf snapshot_changes_${{ matrix.sdk }}.tar
git ls-files -mo BlueprintUICommonControls/Tests/Sources/Resources/ReferenceImages | xargs tar -cvf snapshot_changes_${{ matrix.sdk }}.tar
- name: Archive snapshot changes
uses: actions/upload-artifact@v2
Expand All @@ -56,7 +60,7 @@ jobs:
cocoapods:
name: "CocoaPods"

runs-on: macos-11
runs-on: macos-12

steps:
- uses: actions/checkout@v1
Expand All @@ -83,4 +87,4 @@ jobs:
- name: Build & Test
run: |
xcodebuild -workspace SampleApp/SampleApp.xcworkspace -scheme "BlueprintUI-Unit-Tests" -destination "platform=iOS Simulator,OS=15.0,name=iPhone 8"
xcodebuild -workspace SampleApp/SampleApp.xcworkspace -scheme "BlueprintUI-Unit-Tests" -destination "platform=iOS Simulator,OS=16.2,name=iPhone 8"
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,17 @@ Pods/
*.xcworkspace

# SPM
.swiftpm/

# Disabled so that we can commit the generated schemes that live in
# .swiftpm/xcode/xcshareddata/xcschemes/*.xcscheme, to work around an Xcode 14 bug.
#
# See https://stackoverflow.com/q/72741060
#
# That's the only thing in .swiftpm now. Make this pattern more complicated if you want to exclude
# other things.
#
# .swiftpm/

.build/
BlueprintUI.xcodeproj/

Expand Down
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.4
5.7
143 changes: 143 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/BlueprintUI-Package.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BlueprintUI_BlueprintUICommonControlsTests"
BuildableName = "BlueprintUI_BlueprintUICommonControlsTests"
BlueprintName = "BlueprintUI_BlueprintUICommonControlsTests"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BlueprintUI"
BuildableName = "BlueprintUI"
BlueprintName = "BlueprintUI"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BlueprintUICommonControls"
BuildableName = "BlueprintUICommonControls"
BlueprintName = "BlueprintUICommonControls"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BlueprintUICommonControlsTests"
BuildableName = "BlueprintUICommonControlsTests"
BlueprintName = "BlueprintUICommonControlsTests"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BlueprintUITests"
BuildableName = "BlueprintUITests"
BlueprintName = "BlueprintUITests"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BlueprintUICommonControlsTests"
BuildableName = "BlueprintUICommonControlsTests"
BlueprintName = "BlueprintUICommonControlsTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BlueprintUITests"
BuildableName = "BlueprintUITests"
BlueprintName = "BlueprintUITests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BlueprintUI_BlueprintUICommonControlsTests"
BuildableName = "BlueprintUI_BlueprintUICommonControlsTests"
BlueprintName = "BlueprintUI_BlueprintUICommonControlsTests"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
67 changes: 67 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/BlueprintUI.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BlueprintUI"
BuildableName = "BlueprintUI"
BlueprintName = "BlueprintUI"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BlueprintUI"
BuildableName = "BlueprintUI"
BlueprintName = "BlueprintUI"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BlueprintUICommonControls"
BuildableName = "BlueprintUICommonControls"
BlueprintName = "BlueprintUICommonControls"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BlueprintUICommonControls"
BuildableName = "BlueprintUICommonControls"
BlueprintName = "BlueprintUICommonControls"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Loading

0 comments on commit 7c5c6b7

Please sign in to comment.