mirror of
https://github.com/ratspeak/rsReticulum
synced 2026-11-22 23:10:33 +00:00
release: archives carry rnx, rnir, rnpkg, and the rngit tools
This commit is contained in:
1 parent
2aee96ea4f
commit
499a98aa03
2 files changed
+17
-6
No files matched your search
@@ -23,7 +23,7 @@ env:
|
|||||||
SOURCE_REF: ${{ github.sha }}
|
SOURCE_REF: ${{ github.sha }}
|
||||||
RELEASE_TAG: ${{ github.event.inputs.tag_name || github.ref_name }}
|
RELEASE_TAG: ${{ github.event.inputs.tag_name || github.ref_name }}
|
||||||
PACKAGE_ROOT: rsReticulum
|
PACKAGE_ROOT: rsReticulum
|
||||||
RETICULUM_BINS: rnsd-rs rnstatus-rs rnpath-rs rnid-rs rnprobe-rs rncp-rs rnsh-rs rnodeconf-rs
|
RETICULUM_BINS: rnsd-rs rnstatus-rs rnpath-rs rnid-rs rnprobe-rs rncp-rs rnsh-rs rnodeconf-rs rnx-rs rnir-rs rnpkg-rs rngit-rs rngcs-rs git-remote-rns
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
verify:
|
verify:
|
||||||
@@ -87,15 +87,23 @@ jobs:
|
|||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
run: sudo apt-get update && sudo apt-get install -y libudev-dev libdbus-1-dev pkg-config
|
run: sudo apt-get update && sudo apt-get install -y libudev-dev libdbus-1-dev pkg-config
|
||||||
- name: Build release binaries
|
- name: Build release binaries
|
||||||
run: cargo build -p rns-tools --release --bins --locked
|
run: cargo build -p rns-tools -p rns-git --release --bins --locked
|
||||||
- name: Stage archive contents
|
- name: Stage archive contents
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
suffix=""
|
||||||
|
if [[ "${RUNNER_OS}" == "Windows" ]]; then suffix=".exe"; fi
|
||||||
for bin in ${RETICULUM_BINS}; do
|
for bin in ${RETICULUM_BINS}; do
|
||||||
suffix=""
|
case "${bin}" in
|
||||||
if [[ "${RUNNER_OS}" == "Windows" ]]; then suffix=".exe"; fi
|
# As upstream, these two have no --version.
|
||||||
"target/release/${bin}${suffix}" --version
|
rngcs-rs) "target/release/${bin}${suffix}" --help > /dev/null ;;
|
||||||
|
git-remote-rns)
|
||||||
|
usage="$("target/release/${bin}${suffix}" 2>&1 || true)"
|
||||||
|
[[ "${usage}" == "Usage: git-remote-rns <remote-name> <url>"* ]]
|
||||||
|
;;
|
||||||
|
*) "target/release/${bin}${suffix}" --version ;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
mkdir -p "dist/${PACKAGE_ROOT}/bin"
|
mkdir -p "dist/${PACKAGE_ROOT}/bin"
|
||||||
for bin in ${RETICULUM_BINS}; do
|
for bin in ${RETICULUM_BINS}; do
|
||||||
|
|||||||
@@ -13,7 +13,10 @@ import zipfile
|
|||||||
|
|
||||||
ROOT = Path(__file__).resolve().parents[2]
|
ROOT = Path(__file__).resolve().parents[2]
|
||||||
PACKAGE = "rsReticulum"
|
PACKAGE = "rsReticulum"
|
||||||
BINS = "rnsd-rs rnstatus-rs rnpath-rs rnid-rs rnprobe-rs rncp-rs rnsh-rs rnodeconf-rs".split()
|
BINS = (
|
||||||
|
"rnsd-rs rnstatus-rs rnpath-rs rnid-rs rnprobe-rs rncp-rs rnsh-rs rnodeconf-rs "
|
||||||
|
"rnx-rs rnir-rs rnpkg-rs rngit-rs rngcs-rs git-remote-rns"
|
||||||
|
).split()
|
||||||
DOCS = ("README.md", "LICENSE", "CHANGELOG.md")
|
DOCS = ("README.md", "LICENSE", "CHANGELOG.md")
|
||||||
PLATFORMS = {"linux-x86_64": "tar.gz", "macos": "tar.gz", "windows-x86_64": "zip"}
|
PLATFORMS = {"linux-x86_64": "tar.gz", "macos": "tar.gz", "windows-x86_64": "zip"}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user