Repository navigation
Pack and release XdlSharp and per-platform native packages to nuget.org - #2
Merged
Merged
Conversation
…get.org on every merge to main
…d or reordered versions, and keep browser archives out of app output
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Publishes XdlSharp to nuget.org on every merge to
main, without a package that bundles every platform.Packages
XdlSharp: the bindings only, the same for every platform.XdlSharp.Native.<rid>: the XDL runtime of one platform, packed from the XDL release zip:linux-x64,linux-arm64,osx-x64,osx-arm64,win-x64,win-arm64andbrowser-wasm.XdlSharp.Native.browser-wasmkeeps its archives underbuildTransitive/native/and adds them asNativeFileReferenceitems with--use-port=emdawnwebgpu. Outsideruntimes/, NuGet does not copy them into app output. The consumer sets a writableWasmCachePath.License
XdlSharp uses the zlib license, as XDL does.
XdlSharpdeclaresZlib. Each native package declares the release'sTHIRD-PARTY-NOTICES.txtas its license file, because the libraries also contain code under other licenses.Version
<SDL version>.<N>, such as3.4.20.1. The Release workflow takes N as one more than the highestv3.4.20.<N>tag, pushes the packages through Trusted Publishing asstanoddly, and then tags the commit.queue: max), so no merge's run is cancelled.id-token: write) and tagging (contents: write) are separate jobs.Other changes
XDL_VERSIONmoves to3.4.20-4. The headers are unchanged, so the generated bindings are too.tools/XdlRelease.projtakes a list of XDL targets instead of one runtime identifier.--checkwith clang 22, the desktop tests, the browser tests and packing. Thentests/XdlSharp.Package.Testsandtests/XdlSharp.Package.Browser.Testsrestore the packed packages and load each library on linux-x64, linux-arm64, win-x64, osx-arm64 and in the browser.objinstead of the current directory.Verified locally
--checkpasses, the desktop tests pass 15 of 15 and the browser tests pass 14 of 14, from a fresh download of the release.tools/pack.shpacks all 8 packages.SDL_GetVersion,IMG_Version,TTF_VersionandMIX_Versionmatched the headers.Not verified
main. The first release creates 8 new package IDs on nuget.org.