This commit is contained in:
parent
307db7169d
commit
be1986ca08
1 changed files with 6 additions and 2 deletions
|
|
@ -93,18 +93,22 @@ jobs:
|
||||||
# Linux launcher is statically linked; the Windows launcher has
|
# Linux launcher is statically linked; the Windows launcher has
|
||||||
# crafter-build.dll + libcrafter-build.dll.a alongside the exe.
|
# crafter-build.dll + libcrafter-build.dll.a alongside the exe.
|
||||||
for march in x86-64-v2 x86-64-v3 x86-64-v4; do
|
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)
|
stage_lin=$(mktemp -d)
|
||||||
mkdir -p "$stage_lin/bin" "$stage_lin/lib"
|
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-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 "bin/crafter.build-lib-x86_64-pc-linux-gnu-$march/libcrafter-build.a" "$stage_lin/lib/"
|
||||||
cp -r share "$stage_lin/"
|
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)
|
stage_win=$(mktemp -d)
|
||||||
mkdir -p "$stage_win/bin"
|
mkdir -p "$stage_win/bin"
|
||||||
cp "bin/crafter.build-exe-x86_64-w64-mingw32-$march"/* "$stage_win/bin/"
|
cp "bin/crafter.build-exe-x86_64-w64-mingw32-$march"/* "$stage_win/bin/"
|
||||||
cp -r share "$stage_win/"
|
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
|
done
|
||||||
|
|
||||||
ls -la dist/
|
ls -la dist/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue