-
Notifications
You must be signed in to change notification settings - Fork 30
Vision os research #2050
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
Draft
maratal
wants to merge
10
commits into
main
Choose a base branch
from
2045-visionOS-research
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Vision os research #2050
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
f48009d
Update conditional compilation for push usage for ably-cocoa, tests a…
maratal 2241cc6
Add visionOS to ably-cocoa SPM.
maratal d4bcbcb
Add visionOS as a native target for PushExample.
maratal 6b1f370
Fix most of the compiler warnings re visionOS deprecations.
maratal 275a41d
Add Nimble as SPM dependency instead of Carthage.
maratal 814bf32
Add visionOS targets and upgraded to latest Nimble (main branch).
maratal 963542e
WIP Temporarily comment code that doesn't compile under visionOS.
maratal c89572e
Add visionOS CI workflow.
maratal 0ee75ea
Uncheck and check "Shared" on Ably-visionOS scheme in Xcode
lawrence-forooghian ae0eac0
Switched to macos-13-arm64 with visionOS Simulator 1.0.
maratal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,113 @@ | ||
| name: "Integration Test" | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| # IMPORTANT NOTES: | ||
| # - Changes made to this file needs to replicated across other integration-test-*.yaml files. | ||
| # - The Fastlane lane name is duplicated in more than one place within this workflow. | ||
|
|
||
| jobs: | ||
| check: | ||
| runs-on: macos-13-xlarge | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
|
|
||
| - platform: visionOS | ||
| lane: test_visionOS_1_0 | ||
|
|
||
| env: | ||
| LC_CTYPE: en_US.UTF-8 | ||
| LANG: en_US.UTF-8 | ||
| ABLY_ENV: sandbox | ||
|
|
||
| steps: | ||
| - name: Check out repo | ||
| uses: actions/checkout@v2 | ||
|
|
||
| - name: Select Xcode (15.2) | ||
| run: | | ||
| sudo xcode-select -s /Applications/Xcode_15.2.app | ||
| echo "Selected Xcode version:" | ||
| xcodebuild -version | ||
|
|
||
| - name: Environment Info | ||
| run: ./Scripts/log-environment-information.sh | ||
|
|
||
| - name: Check out xcparse repo | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| repository: ably-forks/xcparse | ||
| ref: emit-test-case-info | ||
| path: xcparse | ||
|
|
||
| - id: get-xcparse-commit-sha | ||
| name: Get xcparse commit SHA | ||
| run: | | ||
| cd xcparse | ||
| echo "::set-output name=sha::$(git rev-parse HEAD)" | ||
|
|
||
| - name: "actions/cache@v3 (xcparse binary)" | ||
| uses: actions/cache@v3 | ||
| with: | ||
| path: xcparse/.build/debug/xcparse | ||
| key: ${{ runner.os }}-xcparse-${{ steps.get-xcparse-commit-sha.outputs.sha }} | ||
|
|
||
| - name: Reset Simulators | ||
| run: xcrun simctl erase all | ||
|
|
||
| - name: Install Dependencies | ||
| run: | | ||
| brew install xcbeautify | ||
| make submodules | ||
| bundle install | ||
|
|
||
| - name: Run Tests | ||
| run: bundle exec fastlane ${{ matrix.lane }} | ||
|
|
||
| - name: Check Static Analyzer Output | ||
| id: analyzer-output | ||
| run: | | ||
| if [[ -z $(find ./derived_data -name "report-*.html") ]]; then | ||
| echo "Static Analyzer found no issues." | ||
| else | ||
| echo "Static Analyzer found some issues. HTML report will be available in Artifacts section. Failing build." | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Upload Static Analyzer Reports | ||
| if: ${{ failure() && steps.analyzer-output.outcome == 'failure' }} | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: static-analyzer-reports-${{ matrix.lane }} | ||
| path: ./derived_data/**/report-*.html | ||
|
|
||
| - name: Upload Xcodebuild Logs | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: xcodebuild-logs-${{ matrix.lane }} | ||
| path: ~/Library/Developer/Xcode/DerivedData/*/Logs | ||
|
|
||
| - name: Upload Test Output | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: test-output-${{ matrix.lane }} | ||
| path: fastlane/test_output | ||
|
|
||
| - name: Upload Test Results | ||
| if: always() | ||
| env: | ||
| TEST_OBSERVABILITY_SERVER_AUTH_KEY: ${{ secrets.TEST_OBSERVABILITY_SERVER_AUTH_KEY }} | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: | | ||
| Scripts/upload_test_results.sh --job-name "check (${{ matrix.platform }}, ${{ matrix.lane }})" | ||
|
|
Large diffs are not rendered by default.
Oops, something went wrong.
79 changes: 79 additions & 0 deletions
79
Ably.xcodeproj/xcshareddata/xcschemes/Ably-visionOS.xcscheme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <Scheme | ||
| LastUpgradeVersion = "1610" | ||
| version = "1.7"> | ||
| <BuildAction | ||
| parallelizeBuildables = "YES" | ||
| buildImplicitDependencies = "YES" | ||
| buildArchitectures = "Automatic"> | ||
| <BuildActionEntries> | ||
| <BuildActionEntry | ||
| buildForTesting = "YES" | ||
| buildForRunning = "YES" | ||
| buildForProfiling = "YES" | ||
| buildForArchiving = "YES" | ||
| buildForAnalyzing = "YES"> | ||
| <BuildableReference | ||
| BuildableIdentifier = "primary" | ||
| BlueprintIdentifier = "84E6D9C92DB69D9700E6A1AD" | ||
| BuildableName = "Ably.framework" | ||
| BlueprintName = "Ably-visionOS" | ||
| ReferencedContainer = "container:Ably.xcodeproj"> | ||
| </BuildableReference> | ||
| </BuildActionEntry> | ||
| </BuildActionEntries> | ||
| </BuildAction> | ||
| <TestAction | ||
| buildConfiguration = "Debug" | ||
| selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
| selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
| shouldUseLaunchSchemeArgsEnv = "YES" | ||
| shouldAutocreateTestPlan = "YES"> | ||
| <Testables> | ||
| <TestableReference | ||
| skipped = "NO"> | ||
| <BuildableReference | ||
| BuildableIdentifier = "primary" | ||
| BlueprintIdentifier = "84B3FC732DB69F9C00037368" | ||
| BuildableName = "Ably-visionOS-Tests.xctest" | ||
| BlueprintName = "Ably-visionOS-Tests" | ||
| ReferencedContainer = "container:Ably.xcodeproj"> | ||
| </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 = "84E6D9C92DB69D9700E6A1AD" | ||
| BuildableName = "Ably.framework" | ||
| BlueprintName = "Ably-visionOS" | ||
| ReferencedContainer = "container:Ably.xcodeproj"> | ||
| </BuildableReference> | ||
| </MacroExpansion> | ||
| </ProfileAction> | ||
| <AnalyzeAction | ||
| buildConfiguration = "Debug"> | ||
| </AnalyzeAction> | ||
| <ArchiveAction | ||
| buildConfiguration = "Release" | ||
| revealArchiveInOrganizer = "YES"> | ||
| </ArchiveAction> | ||
| </Scheme> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you using the name "xrOS" here? Isn't this old terminology?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It still called like that in the SDK - https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md