From d2f1b16597c8c712433d2392dcdbab46935d65ae Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 22 Nov 2026 14:54:43 +0000 Subject: [PATCH 1/2] release: v0.7.4 binary release manifest --- Package.swift | 58 +++++++++++++++++++++++++++---------------- release-manifest.json | 14 +++++------ 2 files changed, 44 insertions(+), 28 deletions(-) diff --git a/Package.swift b/Package.swift index 2c8b0aa00..06bf479ac 100644 --- a/Package.swift +++ b/Package.swift @@ -1,29 +1,30 @@ // swift-tools-version: 5.9 -import PackageDescription -// This is mx's SOURCE manifest: `Mx` compiles from this checkout, so sibling -// development (a consumer using `.package(path:)`) needs no environment setup, -// and non-Apple hosts can build. Every tip of main carries this manifest. +// TEMPLATE for the machine-generated release manifest -- the Package.swift that +// exists only at a tagged release commit, called "commit B". +// The _release-target-swift workflow interpolates the three MX_RELEASE +// placeholders (version, url, checksum) and the release-build prep job commits +// the result as B; commit R then restores the source manifest, so every tip of +// main keeps the source-only Package.swift. // -// Released versions resolve differently: a consumer depending on -// `from: "X.Y.Z"` checks out the tagged release commit, which carries a -// machine-generated binary-default manifest (an XCFramework binaryTarget) -// interpolated from .github/release/Package.swift.template by the -// release-build workflow. That manifest exists only at tagged release commits, -// never at a tip of main. +// KEEP IN SYNC: mxSourceTarget below must stay byte-for-byte identical to the +// target in the repository's Package.swift, so that a release built from source +// (non-Apple hosts, or MX_SOURCE_BUILD=1) is the same build a sibling checkout +// gets. When Package.swift's target changes, change this copy too. + +import PackageDescription + +// Release: 0.7.4 // -// KEEP IN SYNC: the target below must stay byte-for-byte identical to -// mxSourceTarget in .github/release/Package.swift.template, so a release built -// from source is the same build a sibling checkout gets. +// SwiftPM evaluates this manifest on the consumer's machine, so the selection +// below runs there: +// - Apple hosts get the published prebuilt XCFramework by default -- no +// environment setup. Setting MX_SOURCE_BUILD=1 opts a Mac into compiling +// the tagged release from source instead. +// - Non-Apple hosts always compile from source; an XCFramework binaryTarget +// cannot resolve there. -// SPM globs every C++ translation unit under `src` (all of which live in -// `src/private`), minus the Catch2 runner, the test suites, and the example -// programs -- the only files carrying their own main(). The public surface -// is the mx::api headers under `src/include`; `src/private` is added to the -// internal header search path so the model can include `mx/core/...` and -// `mxpugi/mxpugi.hpp` (mx's private copy of pugixml), the same include root -// the CMake build exposes. -let mxTarget: Target = .target( +let mxSourceTarget: Target = .target( name: "Mx", path: "src", exclude: [ @@ -37,6 +38,21 @@ let mxTarget: Target = .target( ] ) +let mxTarget: Target +#if os(macOS) +if Context.environment["MX_SOURCE_BUILD"] != nil { + mxTarget = mxSourceTarget +} else { + mxTarget = .binaryTarget( + name: "Mx", + url: "https://github.com/webern/mx/releases/download/v0.7.4/Mx.xcframework.zip", + checksum: "08fab07000c7e1304dbbd5300bee58da8276a05f8851b09740bcee5b68f33cbf" + ) +} +#else +mxTarget = mxSourceTarget +#endif + let package = Package( name: "mx", products: [ diff --git a/release-manifest.json b/release-manifest.json index 10d5b504a..1b8458820 100644 --- a/release-manifest.json +++ b/release-manifest.json @@ -1,15 +1,15 @@ { - "version": "0.7.3", - "base_sha": "703a79949896daa74f5e7b2b530da2381f33889f", - "run_id": 44940245986, + "version": "0.7.4", + "base_sha": "e5b663688ea9a943f9fca094524cd33690eb4d5d", + "run_id": 45031947728, "targets": [ { "target": "swift", - "version": "0.7.3", - "base_sha": "703a79949896daa74f5e7b2b530da2381f33889f", - "artifact": "mx-release-swift-703a79949896daa74f5e7b2b530da2381f33889f", + "version": "0.7.4", + "base_sha": "e5b663688ea9a943f9fca094524cd33690eb4d5d", + "artifact": "mx-release-swift-e5b663688ea9a943f9fca094524cd33690eb4d5d", "archive": "Mx.xcframework.zip", - "checksum": "dc5afee6ca9b0755eabc835638a609f3875e6fcb2bd8b7d8421b3ec8de044f1d", + "checksum": "08fab07000c7e1304dbbd5300bee58da8276a05f8851b09740bcee5b68f33cbf", "platforms": [ "macos-arm64", "macos-x86_64", From 2a83b7587826aa6995302d8879ac317b814badec Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 22 Nov 2026 14:54:43 +0000 Subject: [PATCH 2/2] release: v0.7.4 restore the source manifest --- Package.swift | 58 +++++++++++++++++++-------------------------------- 1 file changed, 21 insertions(+), 37 deletions(-) diff --git a/Package.swift b/Package.swift index 06bf479ac..2c8b0aa00 100644 --- a/Package.swift +++ b/Package.swift @@ -1,30 +1,29 @@ // swift-tools-version: 5.9 - -// TEMPLATE for the machine-generated release manifest -- the Package.swift that -// exists only at a tagged release commit, called "commit B". -// The _release-target-swift workflow interpolates the three MX_RELEASE -// placeholders (version, url, checksum) and the release-build prep job commits -// the result as B; commit R then restores the source manifest, so every tip of -// main keeps the source-only Package.swift. -// -// KEEP IN SYNC: mxSourceTarget below must stay byte-for-byte identical to the -// target in the repository's Package.swift, so that a release built from source -// (non-Apple hosts, or MX_SOURCE_BUILD=1) is the same build a sibling checkout -// gets. When Package.swift's target changes, change this copy too. - import PackageDescription -// Release: 0.7.4 +// This is mx's SOURCE manifest: `Mx` compiles from this checkout, so sibling +// development (a consumer using `.package(path:)`) needs no environment setup, +// and non-Apple hosts can build. Every tip of main carries this manifest. // -// SwiftPM evaluates this manifest on the consumer's machine, so the selection -// below runs there: -// - Apple hosts get the published prebuilt XCFramework by default -- no -// environment setup. Setting MX_SOURCE_BUILD=1 opts a Mac into compiling -// the tagged release from source instead. -// - Non-Apple hosts always compile from source; an XCFramework binaryTarget -// cannot resolve there. +// Released versions resolve differently: a consumer depending on +// `from: "X.Y.Z"` checks out the tagged release commit, which carries a +// machine-generated binary-default manifest (an XCFramework binaryTarget) +// interpolated from .github/release/Package.swift.template by the +// release-build workflow. That manifest exists only at tagged release commits, +// never at a tip of main. +// +// KEEP IN SYNC: the target below must stay byte-for-byte identical to +// mxSourceTarget in .github/release/Package.swift.template, so a release built +// from source is the same build a sibling checkout gets. -let mxSourceTarget: Target = .target( +// SPM globs every C++ translation unit under `src` (all of which live in +// `src/private`), minus the Catch2 runner, the test suites, and the example +// programs -- the only files carrying their own main(). The public surface +// is the mx::api headers under `src/include`; `src/private` is added to the +// internal header search path so the model can include `mx/core/...` and +// `mxpugi/mxpugi.hpp` (mx's private copy of pugixml), the same include root +// the CMake build exposes. +let mxTarget: Target = .target( name: "Mx", path: "src", exclude: [ @@ -38,21 +37,6 @@ let mxSourceTarget: Target = .target( ] ) -let mxTarget: Target -#if os(macOS) -if Context.environment["MX_SOURCE_BUILD"] != nil { - mxTarget = mxSourceTarget -} else { - mxTarget = .binaryTarget( - name: "Mx", - url: "https://github.com/webern/mx/releases/download/v0.7.4/Mx.xcframework.zip", - checksum: "08fab07000c7e1304dbbd5300bee58da8276a05f8851b09740bcee5b68f33cbf" - ) -} -#else -mxTarget = mxSourceTarget -#endif - let package = Package( name: "mx", products: [