From 382ca0880026c0aa0aaa086b474ae72e44c736a6 Mon Sep 17 00:00:00 2001 From: akarin Date: Wed, 11 Aug 2021 09:42:10 -0400 Subject: [PATCH] .github/workflows/build.yaml: update build artifact paths Signed-off-by: akarin --- .github/workflows/build.yaml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index cf6865d..ad72105 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -33,11 +33,17 @@ jobs: run: | cd "./build/win" dir="release-$(git describe --tags --always)" - mkdir -p "$dir"/{x86,x64} - cp Releasex64/fmtconv.dll "$dir"/x64 - cp Releasex64/fmtconv.pdb "$dir"/x64 - cp ReleaseWin32/fmtconv.dll "$dir"/x86 - cp ReleaseWin32/fmtconv.pdb "$dir"/x86 + for arch in x64 Win32; do + for d in */Release${arch}; do + echo "d=$d" + dirname="$dir/$arch/$(dirname $d)" + echo "dirname=$dirname" + mkdir -p "$dirname" + for f in "$d"/*.dll "$d"/*.pdb; do + cp "$f" "$dirname" || true + done + done + done cp -a ../../doc "$dir"/ git clone https://github.com/AkarinVS/exe/ exe/zip.exe -9r fmtconv-release.zip "$dir"/