fix(release): include matrix channel in official builds (#3166)

This commit is contained in:
Argenis 2026-03-11 18:42:04 -04:00 committed by GitHub
parent cfb2d548be
commit b21223a6aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 4 deletions

View File

@ -181,6 +181,8 @@ jobs:
context: .
push: false
load: true
build-args: |
ZEROCLAW_CARGO_FEATURES=channel-matrix
tags: zeroclaw-release-candidate:${{ steps.meta.outputs.release_tag }}
platforms: linux/amd64
cache-from: type=gha,scope=pub-docker-release-${{ steps.meta.outputs.release_tag }}
@ -282,7 +284,7 @@ jobs:
context: .
push: true
build-args: |
ZEROCLAW_CARGO_ALL_FEATURES=true
ZEROCLAW_CARGO_FEATURES=channel-matrix
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64,linux/arm64
cache-from: type=gha,scope=pub-docker-release-${{ steps.meta.outputs.release_tag }}

View File

@ -418,16 +418,21 @@ jobs:
LINKER_ENV: ${{ matrix.linker_env }}
LINKER: ${{ matrix.linker }}
USE_CROSS: ${{ matrix.use_cross }}
ZEROCLAW_RELEASE_CARGO_FEATURES: channel-matrix
run: |
BUILD_ARGS=(--profile release-fast --locked --target ${{ matrix.target }})
if [ -n "$ZEROCLAW_RELEASE_CARGO_FEATURES" ]; then
BUILD_ARGS+=(--features "$ZEROCLAW_RELEASE_CARGO_FEATURES")
fi
if [ -n "$LINKER_ENV" ] && [ -n "$LINKER" ]; then
echo "Using linker override: $LINKER_ENV=$LINKER"
export "$LINKER_ENV=$LINKER"
fi
if [ "$USE_CROSS" = "true" ]; then
echo "Using cross for MUSL target"
cross build --profile release-fast --locked --target ${{ matrix.target }}
echo "Using cross for official release build"
cross build "${BUILD_ARGS[@]}"
else
cargo build --profile release-fast --locked --target ${{ matrix.target }}
cargo build "${BUILD_ARGS[@]}"
fi
- name: Check binary size (Unix)