Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 24 additions & 12 deletions .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,15 @@ jobs:
# client_payload; workflow_dispatch (dry-run) leaves it empty
# and falls back to the latest release.
TAG_ARG=()
if [ -n "$AASM_TAG" ]; then TAG_ARG=(--tag "$AASM_TAG"); fi
if [ -n "$AASM_TAG" ]; then TAG_ARG=("$AASM_TAG"); fi
# Hard error on missing binary: the repository_dispatch event
# guarantees the aasm-* assets exist on the upstream release
# at this point (see AI-agent-assembly/agent-assembly#842).
gh release download "${TAG_ARG[@]}" --repo "$AASM_REPO" --pattern 'aasm-linux-x86_64' --dir agent_assembly/bin/
mv agent_assembly/bin/aasm-linux-x86_64 agent_assembly/bin/aasm
gh release download "${TAG_ARG[@]}" --repo "$AASM_REPO" --pattern 'aasm-x86_64-unknown-linux-gnu.tar.gz' --dir agent_assembly/bin/
# Tarball contains a single `aasm` binary at the root;
# extract in place, then drop the archive.
tar -xzf agent_assembly/bin/aasm-x86_64-unknown-linux-gnu.tar.gz -C agent_assembly/bin/
rm -f agent_assembly/bin/aasm-x86_64-unknown-linux-gnu.tar.gz
chmod +x agent_assembly/bin/aasm
echo "Bundled aasm binary into wheel"
- name: Build wheel
Expand Down Expand Up @@ -140,12 +143,15 @@ jobs:
mkdir -p agent_assembly/bin
# See linux-x86_64 above for tag-pinning rationale.
TAG_ARG=()
if [ -n "$AASM_TAG" ]; then TAG_ARG=(--tag "$AASM_TAG"); fi
if [ -n "$AASM_TAG" ]; then TAG_ARG=("$AASM_TAG"); fi
# Hard error on missing binary: the repository_dispatch event
# guarantees the aasm-* assets exist on the upstream release
# at this point (see AI-agent-assembly/agent-assembly#842).
gh release download "${TAG_ARG[@]}" --repo "$AASM_REPO" --pattern 'aasm-linux-aarch64' --dir agent_assembly/bin/
mv agent_assembly/bin/aasm-linux-aarch64 agent_assembly/bin/aasm
gh release download "${TAG_ARG[@]}" --repo "$AASM_REPO" --pattern 'aasm-aarch64-unknown-linux-gnu.tar.gz' --dir agent_assembly/bin/
# Tarball contains a single `aasm` binary at the root;
# extract in place, then drop the archive.
tar -xzf agent_assembly/bin/aasm-aarch64-unknown-linux-gnu.tar.gz -C agent_assembly/bin/
rm -f agent_assembly/bin/aasm-aarch64-unknown-linux-gnu.tar.gz
chmod +x agent_assembly/bin/aasm
echo "Bundled aasm binary into wheel"
- name: Build wheel
Expand Down Expand Up @@ -197,12 +203,15 @@ jobs:
mkdir -p agent_assembly/bin
# See linux-x86_64 above for tag-pinning rationale.
TAG_ARG=()
if [ -n "$AASM_TAG" ]; then TAG_ARG=(--tag "$AASM_TAG"); fi
if [ -n "$AASM_TAG" ]; then TAG_ARG=("$AASM_TAG"); fi
# Hard error on missing binary: the repository_dispatch event
# guarantees the aasm-* assets exist on the upstream release
# at this point (see AI-agent-assembly/agent-assembly#842).
gh release download "${TAG_ARG[@]}" --repo "$AASM_REPO" --pattern 'aasm-macos-arm64' --dir agent_assembly/bin/
mv agent_assembly/bin/aasm-macos-arm64 agent_assembly/bin/aasm
gh release download "${TAG_ARG[@]}" --repo "$AASM_REPO" --pattern 'aasm-aarch64-apple-darwin.tar.gz' --dir agent_assembly/bin/
# Tarball contains a single `aasm` binary at the root;
# extract in place, then drop the archive.
tar -xzf agent_assembly/bin/aasm-aarch64-apple-darwin.tar.gz -C agent_assembly/bin/
rm -f agent_assembly/bin/aasm-aarch64-apple-darwin.tar.gz
chmod +x agent_assembly/bin/aasm
echo "Bundled aasm binary into wheel"
- name: Install protoc (macOS)
Expand Down Expand Up @@ -237,12 +246,15 @@ jobs:
mkdir -p agent_assembly/bin
# See linux-x86_64 above for tag-pinning rationale.
TAG_ARG=()
if [ -n "$AASM_TAG" ]; then TAG_ARG=(--tag "$AASM_TAG"); fi
if [ -n "$AASM_TAG" ]; then TAG_ARG=("$AASM_TAG"); fi
# Hard error on missing binary: the repository_dispatch event
# guarantees the aasm-* assets exist on the upstream release
# at this point (see AI-agent-assembly/agent-assembly#842).
gh release download "${TAG_ARG[@]}" --repo "$AASM_REPO" --pattern 'aasm-macos-x86_64' --dir agent_assembly/bin/
mv agent_assembly/bin/aasm-macos-x86_64 agent_assembly/bin/aasm
gh release download "${TAG_ARG[@]}" --repo "$AASM_REPO" --pattern 'aasm-x86_64-apple-darwin.tar.gz' --dir agent_assembly/bin/
# Tarball contains a single `aasm` binary at the root;
# extract in place, then drop the archive.
tar -xzf agent_assembly/bin/aasm-x86_64-apple-darwin.tar.gz -C agent_assembly/bin/
rm -f agent_assembly/bin/aasm-x86_64-apple-darwin.tar.gz
chmod +x agent_assembly/bin/aasm
echo "Bundled aasm binary into wheel"
- name: Install protoc (macOS)
Expand Down
Loading