Add GitHub Actions for building XCFramework artifacts#18976
Add GitHub Actions for building XCFramework artifacts#18976chrisballinger wants to merge 5 commits intoopencv:4.xfrom
Conversation
|
@alalek Not sure how this could have broken the build considering it's a new file. I'm having trouble digging up the log file for the failed build on the old CI system, any ideas? |
|
Logs were expired (100 last builders are stored only) I re-sheduled build. The message is: (2 spaces after Consider enabling commit hook: https://github.com/opencv/opencv/wiki/How_to_contribute#q3-i-was-asked-to-remove-whitespace-issues-how-can-i-do-that |
|
@chrisballinger If #19088 gets merged, you'll need to use the |
alalek
left a comment
There was a problem hiding this comment.
Looks good to me.
Please take a look on the comment about --out option above.
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| - next | ||
| tags: | ||
| - '**' | ||
| pull_request: # Run on every pull request, regardless of target branch |
There was a problem hiding this comment.
Please avoid automatic triggering of such huge pipelines.
Lets use manual trigger instead:
on: workflow_dispatch
|
jenkins cn please retry a build |
|
Bumping this one. @chrisballinger @alalek is there anything blocking this? Having a pre-built |
|
It sounded like the core team wasn't interested unfortunately. But you can build an xcframework yourself now. |
Yeah I saw that based on the linked PRs 😥.
I did so for a PoC, but not sure how to proceed for the issue that I linked above 😅, which so far relied on the pre-built iOS framework. For supporting |
Splitting this out into a standalone PR, based on the initial work here: #18925
Someone will need to enable GitHub Actions support for this repository, it seems to be disabled: https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/disabling-or-limiting-github-actions-for-a-repository
After this is merged and GitHub Actions is enabled, whenever new code is merged to master, someone creates a pull request, or a tag is created, a new static and dynamic XCFramework build for Apple platforms will be created and the artifacts stored. There is a 5 GB artifact limit so older artifacts will be purged periodically.
Areas for possible future improvement:
Perhaps it would be better to only store the artifacts after merging to master, and skipping the storage for pull requestsdonePull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.