Skip to content

Commit dc595eb

Browse files
DanMeonclaude
andcommitted
ci: 상류 CLI step working-directory + 두 target path 시도
workspace root 에서 --bin rhwp 빌드 시도가 default-run packages 에서 타깃을 못 찾아 실패함. working-directory: external/rhwp 로 돌려서 cargo 가 그 디렉토리의 [[bin]] 정의를 인식하게 함. 빌드 산출물은 workspace 멤버 발견 결과에 따라 ../../target/release/rhwp 또는 ./target/release/rhwp 둘 중 하나로 떨어지므로 양쪽 다 시도. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1426d18 commit dc595eb

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,17 +229,19 @@ jobs:
229229
name: macos-png-hang-samples
230230
path: /tmp/diag/
231231
if-no-files-found: warn
232-
# * 상류 CLI 자체도 hang 하는지 확인 — rhwp export-svg 가 같은 FontMgr 진입점을 거침. workspace target 이 root 에 있음 (Cargo.toml workspace) 이라 working-directory 안 잡고 root 에서 빌드.
232+
# * 상류 CLI 자체도 hang 하는지 확인 — rhwp export-svg 가 같은 FontMgr 진입점을 거침. external/rhwp 디렉토리에서 빌드하되 산출물은 workspace target 으로 떨어질 수 있어 두 path 다 시도.
233233
- name: Upstream rhwp CLI 재현 (macOS, export-svg)
234234
if: always() && runner.os == 'macOS'
235+
working-directory: external/rhwp
235236
run: |
236237
set +e
237238
cargo build --release --bin rhwp 2>&1 | tail -3
238-
BIN=target/release/rhwp
239-
[ -x "$BIN" ] || { echo "(빌드 산출물 없음)"; find . -name "rhwp" -type f -maxdepth 5 2>/dev/null | head -5; exit 0; }
239+
BIN=../../target/release/rhwp
240+
[ -x "$BIN" ] || BIN=./target/release/rhwp
241+
[ -x "$BIN" ] || { echo "(빌드 산출물 없음)"; find ../.. -name "rhwp" -type f -maxdepth 5 2>/dev/null | head -5; exit 0; }
240242
mkdir -p /tmp/svg_diag
241-
echo "=== export-svg page 0, 90s timeout ==="
242-
time timeout 90 "$BIN" export-svg external/rhwp/samples/aift.hwp -o /tmp/svg_diag -p 0
243+
echo "=== export-svg page 0, 90s timeout · using $BIN ==="
244+
time timeout 90 "$BIN" export-svg samples/aift.hwp -o /tmp/svg_diag -p 0
243245
RC=$?
244246
case "$RC" in
245247
124) echo "⚠️ TIMEOUT — 상류 CLI 도 동일하게 hang" ;;

0 commit comments

Comments
 (0)