chore(release): 1.0.0
Releases attach a standalone CLI for linux-aarch64 and linux-x86_64 built natively (package-cli.sh/release-upload.sh, as in Sabiá). ROADMAP drops the reference to the local-only spec and README describes the published image and binaries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
90ece32dac
commit
7146f4f70f
11 files changed
+184
-44
No files matched your search
@@ -17,6 +17,10 @@ concurrency:
|
||||
|
||||
env:
|
||||
REGISTRY: git.lucasrguerra.dev.br
|
||||
CARGO_TERM_COLOR: always
|
||||
# Rust toolchains, cargo registry, and caches live on the persistent runner volume.
|
||||
CARGO_HOME: /opt/hostedtoolcache/cargo
|
||||
RUSTUP_HOME: /opt/hostedtoolcache/rustup
|
||||
|
||||
jobs:
|
||||
# The image is built only from these paths, so their tree hashes identify it.
|
||||
@@ -149,10 +153,6 @@ jobs:
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- name: Build release CLI binary
|
||||
run: |
|
||||
cargo build --release --locked -p xexeu-cli
|
||||
- name: Release
|
||||
env:
|
||||
TAG: ${{ gitea.ref_name }}
|
||||
@@ -167,14 +167,32 @@ jobs:
|
||||
pre=false; case "$TAG" in *-*) pre=true ;; esac
|
||||
jq -n --arg tag "$TAG" --arg name "Xexéu ${TAG#v}" --rawfile body notes.md --argjson pre "$pre" \
|
||||
'{tag_name:$tag, name:$name, body:$body, prerelease:$pre}' > release.json
|
||||
rel=$(curl -fsS -X POST "$API/releases" -H "Authorization: token $TOKEN" \
|
||||
-H 'Content-Type: application/json' -d @release.json)
|
||||
rel_id=$(echo "$rel" | jq -r .id)
|
||||
if [ -n "$rel_id" ] && [ "$rel_id" != "null" ]; then
|
||||
asset_name="xexeu-${TAG#v}-linux-arm64"
|
||||
cp target/release/xexeu "$asset_name"
|
||||
curl -fsS -X POST "$API/releases/$rel_id/assets?name=$asset_name" \
|
||||
-H "Authorization: token $TOKEN" \
|
||||
-H "Content-Type: application/octet-stream" \
|
||||
--data-binary @"$asset_name" >/dev/null || true
|
||||
fi
|
||||
curl -fsS -X POST "$API/releases" -H "Authorization: token $TOKEN" \
|
||||
-H 'Content-Type: application/json' -d @release.json >/dev/null
|
||||
|
||||
# Standalone CLI for hosts that run Xexéu without Docker, built natively on
|
||||
# each architecture: xexeu-<tag>-<platform>.tar.gz plus its .sha256.
|
||||
cli:
|
||||
name: CLI (${{ matrix.platform }})
|
||||
needs: gitea-release
|
||||
runs-on: ${{ matrix.runner }}
|
||||
env:
|
||||
CARGO_TARGET_DIR: /opt/hostedtoolcache/cargo-target/xexeu-release-cli-${{ matrix.platform }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- { platform: linux-aarch64, target: aarch64-unknown-linux-gnu, runner: linux-arm64 }
|
||||
- { platform: linux-x86_64, target: x86_64-unknown-linux-gnu, runner: linux-amd64 }
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
targets: ${{ matrix.target }}
|
||||
- name: Build and package
|
||||
run: scripts/package-cli.sh "${{ gitea.ref_name }}" "${{ matrix.platform }}" "${{ matrix.target }}" | tee packages.txt
|
||||
- name: Upload to release
|
||||
env:
|
||||
TOKEN: ${{ gitea.token }}
|
||||
API: ${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}
|
||||
run: scripts/release-upload.sh "${{ gitea.ref_name }}" $(cat packages.txt)
|
||||
Reference in new issue
Block a user