Skip to content

Update release workflow to store XCFramework as Zip file#18284

Merged
taronaeo merged 3 commits intoggml-org:masterfrom
mattt:xcframework-zip
Dec 22, 2025
Merged

Update release workflow to store XCFramework as Zip file#18284
taronaeo merged 3 commits intoggml-org:masterfrom
mattt:xcframework-zip

Conversation

@mattt
Copy link
Copy Markdown
Contributor

@mattt mattt commented Dec 22, 2025

#17299 updated the release workflow to produce .tar.gz archives instead of .zip files. However, Swift Package Manager requires XCFramework binary artifacts to be Zip files:

To distribute code in binary form as a Swift package, create an XCFramework bundle, or artifact, that contains the binaries. Then, make the bundle available locally or on a server:

  • When you host the binaries on a server, create a ZIP archive with the XCFramework in its root directory and make it available publicly.

Currently, if you try to include llama.cpp in a Swift project...

    targets: [
        .binaryTarget(
            name: "llama-cpp",
            url:
                "https://github.com/ggml-org/llama.cpp/releases/download/b7503/llama-b7503-xcframework.tar.gz",
            checksum: "7d65a78175b71132401efc99b3898cf6b3779e9782c5d3cbc6e123108b91807b"
        ),
   ]

...you get the following error:

unsupported extension for binary target 'llama-cpp'; valid extensions are: 'artifactbundleindex', 'zip'

This PR partially reverts 7b6d745, updating the release workflow to package XCFramework artifacts as Zip files once again, and adds a comment documenting this requirement.

@mattt mattt requested a review from CISC as a code owner December 22, 2025 11:41
@github-actions github-actions Bot added the devops improvements to build systems and github actions label Dec 22, 2025
Copy link
Copy Markdown
Member

@CISC CISC left a comment

Choose a reason for hiding this comment

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

Thanks for noticing!

Comment thread .github/workflows/release.yml Outdated
Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>
@mattt
Copy link
Copy Markdown
Contributor Author

mattt commented Dec 22, 2025

Thanks for your quick review, @CISC.

By the way — if any ggml-org owners are interested, I'd be very happy to donate llama.swift, which I created to solve a specific impedance mismatch between Swift Package Manager's implementation of semantic versioning and llama.cpp releases. Just let me know ✌️

Copy link
Copy Markdown
Member

@taronaeo taronaeo left a comment

Choose a reason for hiding this comment

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

Oops, thank you!

@taronaeo taronaeo merged commit ee74642 into ggml-org:master Dec 22, 2025
2 checks passed
Anico2 added a commit to Anico2/llama.cpp that referenced this pull request Jan 15, 2026
…ml-org#18284)

* Update release workflow to store XCFramework as Zip file

* Add comments to document Zip file requirement for XCFramework

* Apply suggestions from code review

Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>

---------

Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>
blime4 referenced this pull request in blime4/llama.cpp Feb 5, 2026
…8284)

* Update release workflow to store XCFramework as Zip file

* Add comments to document Zip file requirement for XCFramework

* Apply suggestions from code review

Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>

---------

Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
…ml-org#18284)

* Update release workflow to store XCFramework as Zip file

* Add comments to document Zip file requirement for XCFramework

* Apply suggestions from code review

Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>

---------

Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops improvements to build systems and github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants