+19
-7
@@ -48,15 +48,27 @@ jobs:
|
|||||||
- name: Package release zips
|
- name: Package release zips
|
||||||
run: |
|
run: |
|
||||||
cd releases
|
cd releases
|
||||||
for host in darwin-arm64 darwin-x64 linux-arm64 linux-x64 win32-x64; do
|
# bare-build outputs under ABI subdirs (aarch64, x86_64) and sometimes flat
|
||||||
if [ -f "$host/anisail-tunnel" ]; then
|
for dir in */; do
|
||||||
zip -j "anisail-tunnel-${host}.zip" "$host/anisail-tunnel"
|
[ -d "$dir" ] || continue
|
||||||
echo "Created anisail-tunnel-${host}.zip"
|
name=$(basename "$dir")
|
||||||
elif [ -f "$host/anisail-tunnel.exe" ]; then
|
if [ -f "${dir}anisail-tunnel" ]; then
|
||||||
zip -j "anisail-tunnel-${host}.zip" "$host/anisail-tunnel.exe"
|
zip -j "anisail-tunnel-${name}.zip" "${dir}anisail-tunnel"
|
||||||
echo "Created anisail-tunnel-${host}.zip"
|
echo "Created anisail-tunnel-${name}.zip"
|
||||||
|
elif [ -f "${dir}anisail-tunnel.exe" ]; then
|
||||||
|
zip -j "anisail-tunnel-${name}.zip" "${dir}anisail-tunnel.exe"
|
||||||
|
echo "Created anisail-tunnel-${name}.zip"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
# Flat binary at root (e.g. from single-host or Windows build)
|
||||||
|
if [ -f "anisail-tunnel" ]; then
|
||||||
|
zip -j "anisail-tunnel-$(uname -m).zip" "anisail-tunnel"
|
||||||
|
echo "Created anisail-tunnel-$(uname -m).zip"
|
||||||
|
fi
|
||||||
|
if [ -f "anisail-tunnel.exe" ]; then
|
||||||
|
zip -j "anisail-tunnel-win32-x64.zip" "anisail-tunnel.exe"
|
||||||
|
echo "Created anisail-tunnel-win32-x64.zip"
|
||||||
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: Smoke test — run native binary for current platform
|
- name: Smoke test — run native binary for current platform
|
||||||
|
|||||||
Reference in New Issue
Block a user