From be1986ca086cf3869782ce8714e4b3a8c17d24f3 Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Wed, 29 Apr 2026 03:02:23 +0200 Subject: [PATCH] CI fix --- .forgejo/workflows/ci.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index c53f564..68516be 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -93,18 +93,22 @@ jobs: # Linux launcher is statically linked; the Windows launcher has # crafter-build.dll + libcrafter-build.dll.a alongside the exe. for march in x86-64-v2 x86-64-v3 x86-64-v4; do + # Short suffix (v2/v3/v4) for archive filenames; the upload-artifact + # steps below reference these short names. + short=${march##*-} + stage_lin=$(mktemp -d) mkdir -p "$stage_lin/bin" "$stage_lin/lib" cp "bin/crafter.build-exe-x86_64-pc-linux-gnu-$march/crafter-build" "$stage_lin/bin/" cp "bin/crafter.build-lib-x86_64-pc-linux-gnu-$march/libcrafter-build.a" "$stage_lin/lib/" cp -r share "$stage_lin/" - tar czf "dist/crafter-build-linux-x86_64-$march.tar.gz" -C "$stage_lin" . + tar czf "dist/crafter-build-linux-x86_64-$short.tar.gz" -C "$stage_lin" . stage_win=$(mktemp -d) mkdir -p "$stage_win/bin" cp "bin/crafter.build-exe-x86_64-w64-mingw32-$march"/* "$stage_win/bin/" cp -r share "$stage_win/" - (cd "$stage_win" && zip -r "$GITHUB_WORKSPACE/dist/crafter-build-windows-x86_64-$march.zip" .) + (cd "$stage_win" && zip -r "$GITHUB_WORKSPACE/dist/crafter-build-windows-x86_64-$short.zip" .) done ls -la dist/