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

Initial visionOS support #344

Merged
merged 9 commits into from
Feb 23, 2024
Merged

Initial visionOS support #344

merged 9 commits into from
Feb 23, 2024

Conversation

ofalvai
Copy link
Contributor

@ofalvai ofalvai commented Feb 21, 2024

Checklist

  • I've read and followed the Contribution Guidelines
  • step.yml and README.md is updated with the changes (if needed)

Version

Requires a MAJOR/MINOR/PATCH version update

Context

Handling visionOS in the SDK parsing is missing at the moment.

Changes

  • Handle archiving visionOS projects, including the weird xrOS/visionOS inconsistency.

Investigation details

Decisions

e2e/bitrise.yml Outdated
- bitrise-run:
title: Run visionOS test if current stack supports it
run_if: |-
{{ and (ne (getenv "BITRISEIO_STACK_ID") "osx-xcode-15.1.x") (ne (getenv "BITRISEIO_STACK_ID") "osx-xcode-15.0.x") (ne (getenv "BITRISEIO_STACK_ID") "osx-xcode-14.3.x-ventura") (ne (getenv "BITRISEIO_STACK_ID") "osx-xcode-14.2.x-ventura") (ne (getenv "BITRISEIO_STACK_ID") "osx-xcode-14.1.x-ventura") (ne (getenv "BITRISEIO_STACK_ID") "osx-xcode-14.0.x-ventura") }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This ugly expression is going to get better over time (we'll remove Xcode 14.0 in 4 weeks, for example).

I also tried to make it easier to read by adding {{ with $stack := getenv "BITRISEIO_STACK_ID" }} ... {{ end }}, but it breaks the expression, it seems like it always returns a truthy value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also, too bad the templating doesn't have a strings.HasPrefix("osx-xcode-14") equivalent :(

Copy link
Contributor

Choose a reason for hiding this comment

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

@ofalvai ofalvai marked this pull request as ready for review February 22, 2024 08:47
lpusok
lpusok previously approved these changes Feb 22, 2024
e2e/bitrise.yml Outdated
- bitrise-run:
title: Run visionOS test if current stack supports it
run_if: |-
{{ and (ne (getenv "BITRISEIO_STACK_ID") "osx-xcode-15.1.x") (ne (getenv "BITRISEIO_STACK_ID") "osx-xcode-15.0.x") (ne (getenv "BITRISEIO_STACK_ID") "osx-xcode-14.3.x-ventura") (ne (getenv "BITRISEIO_STACK_ID") "osx-xcode-14.2.x-ventura") (ne (getenv "BITRISEIO_STACK_ID") "osx-xcode-14.1.x-ventura") (ne (getenv "BITRISEIO_STACK_ID") "osx-xcode-14.0.x-ventura") }}
Copy link
Contributor

Choose a reason for hiding this comment

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

@ofalvai ofalvai changed the title Add visionOS support Initial visionOS support Feb 23, 2024
@ofalvai ofalvai merged commit 979d481 into master Feb 23, 2024
1 check passed
@ofalvai ofalvai deleted the SSW-1291-visionos branch February 23, 2024 09:18
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