Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to Swift 5️⃣.6️⃣ #253

Merged
merged 1 commit into from
Jun 16, 2022
Merged

Migrate to Swift 5️⃣.6️⃣ #253

merged 1 commit into from
Jun 16, 2022

Conversation

p4checo
Copy link
Member

@p4checo p4checo commented Jun 15, 2022

Checklist

Motivation and Context

GH Actions' macOS 12 images have Xcode 13.4.1 available which means that Swift 5.6 is available to use in CI.

https://github.com/actions/virtual-environments/blob/main/images/macos/macos-12-Readme.md#xcode

Description

  • Update ci.yml:

    • Use macOS image macos-12 which contains Xcode 13.4.1.
    • Set DEVELOPER_DIR env var to point to Xcode 13.4.1.
    • Remove IOS_SDK env var so the latest SDK is used.
    • Update swiftpm job to use xcodebuild instead of swift build as the latter now always compiles for the current architecture (macOS).
    • Replace xcpretty with xcbeautify in xcodebuild steps.
  • Make Alicerce (SPM) scheme public to use in CI's swiftpm job.

  • Move Headers build phase before Compile sources in an attempt to fix "Cycle inside Alicerce;" error.

  • Silence SwiftLint warning in Log.MultiLogger.

  • Update cocoapods version in Gemfile.

  • Update Package.swift's // swift-tools-version to 5.6.

  • Update podspec's swift_version to 5.6.

  • Update README.md.

@p4checo p4checo requested a review from a team June 15, 2022 20:46
@codecov
Copy link

codecov bot commented Jun 15, 2022

Codecov Report

Merging #253 (1d3245e) into master (6e97ab1) will increase coverage by 2.79%.
The diff coverage is n/a.

❗ Current head 1d3245e differs from pull request most recent head c4ef69b. Consider uploading reports for the commit c4ef69b to get more accurate results

@@            Coverage Diff             @@
##           master     #253      +/-   ##
==========================================
+ Coverage   92.24%   95.04%   +2.79%     
==========================================
  Files         100      100              
  Lines        3367     3367              
==========================================
+ Hits         3106     3200      +94     
+ Misses        261      167      -94     
Impacted Files Coverage Δ
Sources/Logging/Loggers/Log+MultiLogger.swift 97.36% <ø> (ø)
Sources/AutoLayout/ConstrainableProxy.swift 98.06% <0.00%> (+1.69%) ⬆️
...oreData/NSManagedObjectContext+CoreDataStack.swift 98.27% <0.00%> (+1.72%) ⬆️
Sources/Utils/Lock.swift 89.28% <0.00%> (+1.78%) ⬆️
...Persistence/CoreData/CoreDataStack+Factories.swift 97.72% <0.00%> (+2.27%) ⬆️
Sources/Network/Network+URLSessionResource.swift 95.34% <0.00%> (+2.32%) ⬆️
...istence/CoreData/SiblingContextCoreDataStack.swift 97.50% <0.00%> (+2.50%) ⬆️
...urces/Network/Network+URLSessionNetworkStack.swift 96.15% <0.00%> (+2.56%) ⬆️
...ces/StackOrchestrator/StackOrchestratorStore.swift 91.89% <0.00%> (+2.70%) ⬆️
...rces/Persistence/CoreData/CoreDataStack+CRUD.swift 98.42% <0.00%> (+3.14%) ⬆️
... and 15 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6e97ab1...c4ef69b. Read the comment docs.

GH Actions' macOS 12 images have Xcode 13.4.1 available which means
that Swift 5.6 is available to use in CI.

https://github.com/actions/virtual-environments/blob/main/images/macos/macos-12-Readme.md#xcode

## Changes

- Update `ci.yml`:
  + Use macOS image `macos-12` which contains Xcode 13.4.1.
  + Set `DEVELOPER_DIR` env var to point to Xcode 13.4.1.
  + Remove `IOS_SDK` env var so the latest SDK is used.
  + Update `swiftpm` job to use `xcodebuild` instead of `swift build`.
  as the latter now always compiles for the current architecture
  (macOS).
  + Replace `xcpretty` with `xcbeautify` in `xcodebuild` steps.

- Make `Alicerce (SPM)` scheme public to use in CI's `swiftpm` job.

- Update CocoaPods version in `Gemfile`.

- Move Headers build phase before Compile sources in an attempt to fix
"Cycle inside Alicerce;" error.

- Silence SwiftLint warning in `Log.MultiLogger`.

- Update Package.swift's `// swift-tools-version` to 5.6.

- Update podspec's `swift_version` to 5.6.

- Update `README.md`.
@p4checo p4checo force-pushed the migrate-to-swift-5-6 branch from 1d3245e to c4ef69b Compare June 16, 2022 14:37
@p4checo p4checo merged commit e1699ce into master Jun 16, 2022
@p4checo p4checo deleted the migrate-to-swift-5-6 branch June 16, 2022 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants