Files
yaze/scripts/agents/run-gh-workflow.sh
scawful e36d81f357 fix(linux): add missing yaze_gfx_render dependency to yaze_gfx_debug
Fixes linker error on Linux where yaze_gfx_debug.a (performance_dashboard.cc)
was calling AtlasRenderer::Get() and AtlasRenderer::GetStats() but wasn't
linking against yaze_gfx_render which contains atlas_renderer.cc.

Root cause: yaze_gfx_debug was only linking to yaze_gfx_types and
yaze_gfx_resource, missing the yaze_gfx_render dependency.

This also fixes the undefined reference errors for HttpServer methods
which were already properly included in the agent.cmake source list.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-20 01:38:55 -05:00

51 lines
978 B
Bash

#!/usr/bin/env bash
# Wrapper for triggering GitHub Actions workflows via gh CLI.
# Usage: scripts/agents/run-gh-workflow.sh <workflow_file> [--ref <ref>] [key=value ...]
set -euo pipefail
if ! command -v gh >/dev/null 2>&1; then
echo "error: gh CLI is required (https://cli.github.com/)" >&2
exit 1
fi
if [[ $# -lt 1 ]]; then
echo "Usage: $0 <workflow_file> [--ref <ref>] [key=value ...]" >&2
exit 1
fi
WORKFLOW="$1"
shift
REF=""
INPUT_ARGS=()
while [[ $# -gt 0 ]]; do
case "$1" in
--ref)
REF="$2"
shift 2
;;
*)
INPUT_ARGS+=("-f" "$1")
shift
;;
esac
done
CMD=(gh workflow run "$WORKFLOW")
if [[ -n "$REF" ]]; then
CMD+=("--ref" "$REF")
fi
if [[ ${#INPUT_ARGS[@]} -gt 0 ]]; then
CMD+=("${INPUT_ARGS[@]}")
fi
echo "+ ${CMD[*]}"
"${CMD[@]}"
RUN_URL=$(gh run list --workflow "$WORKFLOW" --limit 1 --json url -q '.[0].url')
if [[ -n "$RUN_URL" ]]; then
echo "Triggered workflow. Track progress at: $RUN_URL"
fi