Skip to content

Commit

Permalink
ci: update minimum build xcode versions
Browse files Browse the repository at this point in the history
  • Loading branch information
5d committed Jan 12, 2024
1 parent 3719cca commit e7f64a0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/composite_actions/get_platform_parameters/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ runs:
- id: get-xcode-version
run: |
LATEST_XCODE_VERSION=14.3.1
MINIMUM_XCODE_VERSION=14.0.1
MINIMUM_XCODE_VERSION=14.3
INPUT_XCODE_VERSION=${{ inputs.xcode_version }}
INPUT_PLATFORM=${{ inputs.platform }}
case $INPUT_XCODE_VERSION in
latest)
Expand All @@ -63,9 +64,9 @@ runs:
DESTINATION_MAPPING='{
"minimum": {
"iOS": "platform=iOS Simulator,name=iPhone 14,OS=16.0",
"tvOS": "platform=tvOS Simulator,name=Apple TV 4K (2nd generation),OS=16.0",
"watchOS": "platform=watchOS Simulator,name=Apple Watch Series 8 (45mm),OS=9.0",
"iOS": "platform=iOS Simulator,name=iPhone 14,OS=16.4",
"tvOS": "platform=tvOS Simulator,name=Apple TV 4K (3nd generation),OS=16.4",
"watchOS": "platform=watchOS Simulator,name=Apple Watch Series 8 (45mm),OS=9.4",
"macOS": "platform=macOS,arch=x86_64"
},
"latest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

uses: ./.github/workflows/build_amplify_swift.yml
with:
os-runner: macos-12
os-runner: macos-13
xcode-version: 'minimum'
platform: ${{ matrix.platform }}
cacheable: false
Expand Down
2 changes: 1 addition & 1 deletion AmplifyTests/CategoryTests/DataStore/TemporalTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class TemporalTests: XCTestCase {
XCTAssertEqual(datetime6.iso8601String, "2023-11-30T11:04:24.000-08:00")
let datetime7 = try Temporal.DateTime(iso8601String: "2023-11-30T14:09:27.128Z")
XCTAssertEqual(datetime7.iso8601String, "2023-11-30T14:09:27.128Z")
if #available(iOS 15.0, tvOS 15.0, *) {
if #available(iOS 15.0, tvOS 15.0, macOS 12, *) {
let now = Date.now
let dateFormatter = DateFormatter()
dateFormatter.timeZone = .init(abbreviation: "HKT")
Expand Down

0 comments on commit e7f64a0

Please sign in to comment.