-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Add visionOS Support #384
Add visionOS Support #384
Conversation
@philprime Thank you for triggering the builds. Seems like the fact that the Danger GitHub Action is relying on a secret not available outside of the repo is failing the Danger check for forks: https://github.com/PSchmiedmayer/TPPDF/blob/main/.github/workflows/danger.yml#L20. Might be resolved by just passing in the default |
Hi @PSchmiedmayer :) Thank you for the PR and the time you invested into it! I just came back from vacation, so I didn't have the time yet to look into it in detail, but I'll do it as soon as possible. |
Thanks again for your PR. Regarding the changes in code: Regarding the CI matrix: Would appreciate if you could add this to your PR. Regarding Danger, the access token with limited access from our bot user @techprimate-bot as defined in their documentation. But I went ahead and created a test fork and PR to check if
Looking at the documentation for permissions of the
After looking further it, and noticing that even setting additional permissions like the following, it did not work: jobs:
job-danger:
permissions:
actions: read
attestations: read
checks: read
contents: read
deployments: read
discussions: read
id-token: write
issues: write
packages: read
pages: read
pull-requests: write
repository-projects: read
security-events: read
statuses: read I guess we need to skip Danger in forked PRs. |
@philprime Thanks for the review! Good idea! I update the GitHub Action Name to just use the Regarding the danger check: Unfortunate but I don't have any other suggestions as well. We have similar challenges with some of our merge checks in our open-source repos. |
Thanks for the adaptation. Super-small request, just for the sake of completeness: could you please also change the macOS Unit Test to use the same format? This is now with the matrix naming:
but this would be nicer:
I don't want to picky, I just think this could be a good point in time for a small change in the PR. You can either rename the macOS job to use this format, or create a matrix with a single entry. Both fine to me. Thank you! |
Also regarding Danger (sent my comment to fast): Looking at my test PR #385 we can add a fallback for the Danger GITHUB_TOKEN, so at least it soft-fails: with:
args: --failOnErrors --no-publish-check
env:
- GITHUB_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
+ GITHUB_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN || secrets.GITHUB_TOKEN }} I actually believe there is a bug in Danger, that it should actually fail (danger/danger-js#1441) but for me it is not critical enough to block your PR. So please add the GITHUB_TOKEN fallback, and we'll fix Danger for forks another time. |
@philprime Sure; I updated the GitHub Action names & Danger job, thanks for the input. I like the idea to keep this clean 🚀 The jobs will now be named:
The |
Fantastic. Thanks for the additional effort. This PR looks good to me so I'll go ahead and merge it, as well as release a new version afterwards |
Thank you @philprime 🚀 Thank you for creating and maintaining this framework; always happy to support fellow open-source work 👍 |
Add visionOS Support
Thank you @philprime & team for the work on TPPDF; nice Swift Package and great functionality!
♻️ Current situation & Problem
#if
statements.UIWebView
that is not available on visionOS.⚙️ Release Notes
📚 Documentation
✅ Testing