mirror of
https://github.com/ratspeak/rsLXMF
synced 2026-11-22 23:10:35 +00:00
release: adopt Reticulum 1.3 and plain version titles
This commit is contained in:
1 parent
5fe094c83e
commit
628162a41c
8 files changed
+62
-37
No files matched your search
@@ -10,7 +10,7 @@ permissions:
|
||||
contents: read
|
||||
|
||||
env:
|
||||
RSLXMF_RSRETICULUM_COMMIT: 1ff0134979292fa8fc04c2e3db2bf483f31d7656
|
||||
RSLXMF_RSRETICULUM_COMMIT: 032c3fd6d359bd5b3068a67b2a5a4c149610ea04
|
||||
|
||||
jobs:
|
||||
api-compat:
|
||||
|
||||
@@ -17,8 +17,8 @@ env:
|
||||
RELEASE_TAG: ${{ github.event.inputs.tag_name || github.ref_name }}
|
||||
PACKAGE_ROOT: rsLXMF
|
||||
LXMF_BINS: lxmd-rs
|
||||
RSLXMF_RSRETICULUM_VERSION: 1.4.0
|
||||
RSLXMF_RSRETICULUM_COMMIT: 1ff0134979292fa8fc04c2e3db2bf483f31d7656
|
||||
RSLXMF_RSRETICULUM_VERSION: 1.3.0
|
||||
RSLXMF_RSRETICULUM_COMMIT: 032c3fd6d359bd5b3068a67b2a5a4c149610ea04
|
||||
|
||||
jobs:
|
||||
verify:
|
||||
@@ -134,5 +134,9 @@ jobs:
|
||||
- uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3
|
||||
with:
|
||||
tag_name: ${{ env.RELEASE_TAG }}
|
||||
name: ${{ env.RELEASE_TAG }}
|
||||
body: ""
|
||||
generate_release_notes: false
|
||||
append_body: false
|
||||
prerelease: ${{ contains(env.RELEASE_TAG, '-') }}
|
||||
files: release-assets/*
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
|
||||
- Raised the host source-build minimum to Rust 1.89 and qualified the corresponding protocol dependency update.
|
||||
|
||||
- Migrated rsReticulum compatibility to the explicit `~1.4.0` line, including
|
||||
- Migrated rsReticulum compatibility to the explicit `~1.3.0` line, including
|
||||
nullable interface discovery and bounded RNode announce admission.
|
||||
- Updated the Python interoperability baseline to Reticulum 1.4.2 and LXMF 1.0.1, with separate LXMF 1.1.0 checks.
|
||||
|
||||
|
||||
Generated
+8
-8
@@ -1052,7 +1052,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-crypto"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"aes",
|
||||
"cbc",
|
||||
@@ -1070,7 +1070,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-identity"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"hex",
|
||||
"rand 0.8.5",
|
||||
@@ -1088,7 +1088,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-interface"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"hex",
|
||||
@@ -1117,7 +1117,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-link"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"hex",
|
||||
"rand 0.8.5",
|
||||
@@ -1132,7 +1132,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-protocol"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"bzip2",
|
||||
"hex",
|
||||
@@ -1148,7 +1148,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-runtime"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"hex",
|
||||
@@ -1175,7 +1175,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-transport"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"hex",
|
||||
@@ -1194,7 +1194,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-wire"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"rns-crypto",
|
||||
"sha2",
|
||||
|
||||
+8
-8
@@ -13,14 +13,14 @@ rust-version = "1.89"
|
||||
|
||||
[workspace.dependencies]
|
||||
# Reticulum crates from a sibling rsReticulum checkout during development.
|
||||
rns-crypto = { path = "../rsReticulum/crates/rns-crypto", version = "~1.4.0" }
|
||||
rns-wire = { path = "../rsReticulum/crates/rns-wire", version = "~1.4.0" }
|
||||
rns-identity = { path = "../rsReticulum/crates/rns-identity", version = "~1.4.0" }
|
||||
rns-link = { path = "../rsReticulum/crates/rns-link", version = "~1.4.0" }
|
||||
rns-protocol = { path = "../rsReticulum/crates/rns-protocol", version = "~1.4.0" }
|
||||
rns-transport = { path = "../rsReticulum/crates/rns-transport", version = "~1.4.0" }
|
||||
rns-runtime = { path = "../rsReticulum/crates/rns-runtime", version = "~1.4.0" }
|
||||
rns-interface = { path = "../rsReticulum/crates/rns-interface", version = "~1.4.0" }
|
||||
rns-crypto = { path = "../rsReticulum/crates/rns-crypto", version = "~1.3.0" }
|
||||
rns-wire = { path = "../rsReticulum/crates/rns-wire", version = "~1.3.0" }
|
||||
rns-identity = { path = "../rsReticulum/crates/rns-identity", version = "~1.3.0" }
|
||||
rns-link = { path = "../rsReticulum/crates/rns-link", version = "~1.3.0" }
|
||||
rns-protocol = { path = "../rsReticulum/crates/rns-protocol", version = "~1.3.0" }
|
||||
rns-transport = { path = "../rsReticulum/crates/rns-transport", version = "~1.3.0" }
|
||||
rns-runtime = { path = "../rsReticulum/crates/rns-runtime", version = "~1.3.0" }
|
||||
rns-interface = { path = "../rsReticulum/crates/rns-interface", version = "~1.3.0" }
|
||||
|
||||
# Workspace LXMF crates
|
||||
lxmf-core = { path = "crates/lxmf-core", version = "1.2.0" }
|
||||
|
||||
Generated
+6
-6
@@ -478,7 +478,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-crypto"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"aes",
|
||||
"cbc",
|
||||
@@ -496,7 +496,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-identity"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"hex",
|
||||
"rand",
|
||||
@@ -514,7 +514,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-link"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"hex",
|
||||
"rand",
|
||||
@@ -529,7 +529,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-protocol"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"bzip2",
|
||||
"hex",
|
||||
@@ -545,7 +545,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-transport"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"hex",
|
||||
@@ -564,7 +564,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-wire"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"rns-crypto",
|
||||
"sha2",
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -114,7 +114,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -125,7 +125,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -136,7 +136,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -147,7 +147,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -158,7 +158,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -328,7 +328,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -339,7 +339,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -350,7 +350,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [
|
||||
@@ -363,7 +363,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -374,7 +374,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
|
||||
@@ -114,6 +114,25 @@ def check_release_workflow(reticulum_version: str) -> str:
|
||||
if "ref: ${{ env.RSLXMF_RSRETICULUM_COMMIT }}" not in workflow:
|
||||
fail("release workflow does not check out the pinned rsReticulum commit")
|
||||
|
||||
publishers = re.findall(
|
||||
r"^ - uses: softprops/action-gh-release@[0-9a-f]{40}[^\n]*\n"
|
||||
r" with:\n((?: [^\n]*\n)+)",
|
||||
workflow,
|
||||
re.MULTILINE,
|
||||
)
|
||||
if len(publishers) != 1:
|
||||
fail("release workflow must have one explicit GitHub publisher")
|
||||
inputs = dict(re.findall(r"^ ([a-z_]+): (.*)$", publishers[0], re.MULTILINE))
|
||||
expected = {
|
||||
"tag_name": "${{ env.RELEASE_TAG }}",
|
||||
"name": "${{ env.RELEASE_TAG }}",
|
||||
"body": '""',
|
||||
"generate_release_notes": "false",
|
||||
"append_body": "false",
|
||||
}
|
||||
if any(inputs.get(key) != value for key, value in expected.items()) or "body_path" in inputs:
|
||||
fail("GitHub releases must use the exact version tag as title and an empty body")
|
||||
|
||||
release_builds = [
|
||||
line.strip()
|
||||
for line in workflow.splitlines()
|
||||
@@ -144,6 +163,8 @@ def check_documentation(version: str) -> None:
|
||||
|
||||
|
||||
def check_release_tag(release_tag: str, version: str, dependency_commit: str) -> None:
|
||||
if not re.fullmatch(r"v\d+\.\d+\.\d+", release_tag):
|
||||
fail("release tags must have the form vX.Y.Z")
|
||||
expected_tag = f"v{version}"
|
||||
if release_tag != expected_tag:
|
||||
fail(f"release tag {release_tag!r} does not match {expected_tag!r}")
|
||||
|
||||
Reference in new issue
Block a user