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

Update CI Workflows to also test Xcode 14.3.1 #1378

Merged
merged 3 commits into from
Jul 27, 2023

Conversation

liamnichols
Copy link
Contributor

@liamnichols liamnichols commented Jul 26, 2023

I noticed that the CI checks only ran on Xcode 12 and 13 using macOS 11 so thought that it might be good to update this to have a sense-check using Xcode 14 as well.

Comment on lines +3 to +6
IPHONEOS_DEPLOYMENT_TARGET=14.0
MACOSX_DEPLOYMENT_TARGET=10.15
TVOS_DEPLOYMENT_TARGET=14.0
WATCHOS_DEPLOYMENT_TARGET=7.0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Xcode 14 stopped setting default values for these settings which usually only results in warnings, but in this instance the builds were failing entirely. I came to this solution from https://stackoverflow.com/a/75729977

Comment on lines +19 to -22
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- uses: actions/checkout@master
- name: Set Xcode
run: |
echo "Available Xcode versions:"
ls /Applications | grep Xcode
echo "Choosing Xcode_${{ matrix.xcode }}.app"
sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
xcodebuild -version
swift --version
swift package --version
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They do the same thing, but DEVELOPER_DIR is slightly easier as it avoids us having to make a sudo call to xcode-select.

Happy to revert this if preferred though, I originally did it when I was debugging an issue as I thought it might have been related (it wasn't).

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No this is great, much better. I saw it recently too in https://github.com/yonaskolb/XcodeGen/pull/1374/files

@liamnichols liamnichols changed the title Update CI Workflows Update CI Workflows to also test Xcode 14.3.1 Jul 26, 2023
@liamnichols liamnichols marked this pull request as ready for review July 26, 2023 12:13
@liamnichols
Copy link
Contributor Author

Thanks for the review @yonaskolb.. I just fixed the build error after i renamed a file in the last commit 🤦

@yonaskolb yonaskolb merged commit 49a9bda into yonaskolb:master Jul 27, 2023
4 checks passed
@liamnichols liamnichols deleted the ln/ci branch July 27, 2023 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants