8 Commits

Author SHA1 Message Date
5957c05501 Update .gitea/workflows/release.yml
Some checks failed
CI / Build & Test (push) Failing after 1m40s
Release / Build Release Binaries via hero-git installer (push) Failing after 14s
2025-11-20 11:24:33 +00:00
240fa060ed Update .gitea/workflows/release.yml
Some checks failed
CI / Build & Test (push) Failing after 1m41s
Release / Build Release Binaries via hero-git installer (push) Failing after 22s
2025-11-20 11:12:23 +00:00
f19385f614 Update .gitea/workflows/release.yml
Some checks failed
CI / Build & Test (push) Failing after 1m50s
Release / Build Release Binaries via hero-git installer (push) Failing after 14s
2025-11-20 11:02:31 +00:00
375beb8fff Update .gitea/workflows/release.yml
Some checks failed
CI / Build & Test (push) Failing after 1m38s
Release / Build Release Binaries (push) Successful in 3m18s
2025-11-19 15:01:40 +00:00
2b98e32a2a Update .gitea/workflows/release.yml
Some checks failed
CI / Build & Test (push) Failing after 1m40s
2025-11-19 14:30:05 +00:00
2814558204 Update .gitea/workflows/release.yml
Some checks failed
CI / Build & Test (push) Failing after 1m40s
Release / Build Release Binaries (push) Has been cancelled
2025-11-19 14:08:01 +00:00
c7bf99a495 Update .gitea/workflows/ci.yml
Some checks failed
CI / Build & Test (push) Failing after 3m52s
2025-11-19 13:45:17 +00:00
192972aba8 Update .gitea/workflows/ci.yml
Some checks failed
CI / Build & Test (push) Failing after 59s
limit rust checks/builds to bin crates only

Run cargo check/test/clippy/build only for crates under bin/ using
--manifest-path instead of the full workspace. This avoids unrelated
validating all binaries.
2025-11-19 12:32:36 +00:00
2 changed files with 105 additions and 61 deletions

View File

@@ -46,20 +46,49 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-cargo-build-target- ${{ runner.os }}-cargo-build-target-
- name: Check code # 👇 Don't fail CI on hero-runner's warnings
run: cargo check --workspace --verbose - name: Check code (all crates under bin/)
env:
RUSTFLAGS: "--cap-lints=warn"
run: |
set -euo pipefail
find bin -name Cargo.toml -print0 | while IFS= read -r -d '' manifest; do
echo "=== cargo check --manifest-path $manifest ==="
cargo check --manifest-path "$manifest" --verbose
done
- name: Run tests # 👇 Same trick for tests, otherwise theyd fail for the same reason
run: cargo test --workspace --verbose - name: Run tests (all crates under bin/)
env:
RUSTFLAGS: "--cap-lints=warn"
run: |
set -euo pipefail
find bin -name Cargo.toml -print0 | while IFS= read -r -d '' manifest; do
echo "=== cargo test --manifest-path $manifest ==="
cargo test --manifest-path "$manifest" --verbose
done
- name: Run clippy # Clippy stays strict (still uses -D warnings for clippy lints).
run: cargo clippy --workspace -- -D warnings # If this later fails because of hero-runner, we can also add RUSTFLAGS here.
- name: Run clippy (all crates under bin/)
run: |
set -euo pipefail
find bin -name Cargo.toml -print0 | while IFS= read -r -d '' manifest; do
echo "=== cargo clippy --manifest-path $manifest ==="
cargo clippy --manifest-path "$manifest" -- -D warnings
done
- name: Check formatting - name: Check formatting
run: cargo fmt --all -- --check run: cargo fmt --all -- --check
- name: Build release binaries # Build was already succeeding; leaving it without cap-lints is fine.
run: cargo build --workspace --release --verbose - name: Build release binaries (all crates under bin/)
run: |
set -euo pipefail
find bin -name Cargo.toml -print0 | while IFS= read -r -d '' manifest; do
echo "=== cargo build --manifest-path $manifest --release ==="
cargo build --manifest-path "$manifest" --release --verbose
done
- name: List built binaries - name: List built binaries
run: | run: |

View File

@@ -7,45 +7,60 @@ on:
jobs: jobs:
build-release: build-release:
name: Build Release Binaries name: Build Release Binaries via hero-git installer
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
IMAGE_NAME: hero-git:latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Extract version from tag - name: Extract version from tag
id: version id: version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
- name: Build release binaries - name: Ensure hero-git image exists
run: cargo build --workspace --release --verbose
- name: Strip binaries
run: | run: |
strip target/release/supervisor || true if ! docker image inspect "$IMAGE_NAME" >/dev/null 2>&1; then
strip target/release/coordinator || true echo "ERROR: Docker image '$IMAGE_NAME' not found on runner."
strip target/release/horus || true echo "Build it manually on the runner with:"
strip target/release/osiris || true echo " docker build -t $IMAGE_NAME -f Dockerfile ."
strip target/release/herorunner || true exit 1
strip target/release/runner_osiris || true fi
strip target/release/runner_sal || true
- name: Prepare bin output dir
run: mkdir -p hero-bin
- name: Run horus_full_install installer in container
run: |
set -euxo pipefail
docker run --rm \
-v "$PWD/hero-bin:/root/hero/bin" \
-e HEROLIB_REF=development_nile_installers \
"$IMAGE_NAME" \
bash -lc '
set -euxo pipefail
cd /opt/herolib
./examples/installers/horus/horus_full_install.vsh
echo "===== AFTER INSTALL, ls -R /root/hero ====="
ls -R /root/hero || true
'
- name: List built binaries
run: ls -al hero-bin
- name: Create release directory - name: Create release directory
run: mkdir -p release-artifacts run: mkdir -p release-artifacts
- name: Package binaries - name: Package binaries
run: | run: |
# Package each binary as a tarball
for binary in supervisor coordinator horus osiris herorunner runner_osiris runner_sal; do for binary in supervisor coordinator horus osiris herorunner runner_osiris runner_sal; do
if [ -f "target/release/$binary" ]; then if [ -f "hero-bin/$binary" ]; then
tar -czf "release-artifacts/${binary}-${{ steps.version.outputs.VERSION }}-linux-x86_64.tar.gz" \ tar -czf "release-artifacts/${binary}-${{ steps.version.outputs.VERSION }}-linux-x86_64.tar.gz" \
-C target/release "$binary" -C hero-bin "$binary"
echo "Packaged $binary" echo "Packaged $binary"
else else
echo "Warning: $binary not found, skipping" echo "Warning: $binary not found, skipping"
@@ -55,46 +70,46 @@ jobs:
- name: Generate checksums - name: Generate checksums
run: | run: |
cd release-artifacts cd release-artifacts
sha256sum *.tar.gz > checksums.txt if ls *.tar.gz >/dev/null 2>&1; then
cat checksums.txt sha256sum *.tar.gz > checksums.txt
cat checksums.txt
else
echo "ERROR: no .tar.gz artifacts were produced; check previous steps (likely the installer didnt build any binaries)."
exit 1
fi
- name: Create Release - name: Create Release
uses: actions/gitea-release@v1 uses: akkuman/gitea-release-action@v1
with: with:
files: release-artifacts/* files: release-artifacts/*
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.TOKEN_GITEA }}
tag_name: ${{ steps.version.outputs.VERSION }} tag_name: ${{ steps.version.outputs.VERSION }}
name: Release ${{ steps.version.outputs.VERSION }} name: Release ${{ steps.version.outputs.VERSION }}
body: | body: |
## Horus Release ${{ steps.version.outputs.VERSION }} ## Horus Release ${{ steps.version.outputs.VERSION }}
### Binaries ### Binaries
This release includes the following binaries for Linux x86_64: Built via the herolib V installer (`horus_full_install.vsh`) inside
- `supervisor` - Hero Supervisor service the `hero-git:latest` image and packaged for Linux x86_64:
- `coordinator` - Hero Coordinator service - `supervisor`
- `horus` - Horus main binary - `coordinator`
- `osiris` - Osiris server - `horus`
- `herorunner` - Hero runner - `osiris`
- `runner_osiris` - Osiris runner - `herorunner`
- `runner_sal` - SAL runner - `runner_osiris`
- `runner_sal`
### Installation ### Installation (example)
Download the appropriate binary for your system:
```bash ```bash
# Example: Download and install supervisor wget https://git.ourworld.tf/herocode/horus/releases/download/${{ steps.version.outputs.VERSION }}/supervisor-${{ steps.version.outputs.VERSION }}-linux-x86_64.tar.gz
wget https://git.ourworld.tf/peternashaat/horus/releases/download/${{ steps.version.outputs.VERSION }}/supervisor-${{ steps.version.outputs.VERSION }}-linux-x86_64.tar.gz
tar -xzf supervisor-${{ steps.version.outputs.VERSION }}-linux-x86_64.tar.gz tar -xzf supervisor-${{ steps.version.outputs.VERSION }}-linux-x86_64.tar.gz
chmod +x supervisor chmod +x supervisor
sudo mv supervisor /usr/local/bin/ sudo mv supervisor /usr/local/bin/
``` ```
### Verification ### Verification
Verify the integrity of downloaded files using the checksums:
```bash ```bash
sha256sum -c checksums.txt sha256sum -c checksums.txt
``` ```
### Changes
See commit history for detailed changes in this release.
draft: false draft: false
prerelease: false prerelease: false