mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-31 09:18:28 +00:00
fix
This commit is contained in:
@@ -194,10 +194,10 @@ jobs:
|
|||||||
target: x86_64-pc-windows-msvc
|
target: x86_64-pc-windows-msvc
|
||||||
cross: false
|
cross: false
|
||||||
platform: windows
|
platform: windows
|
||||||
- os: windows-latest
|
#- os: windows-latest
|
||||||
target: aarch64-pc-windows-msvc
|
# target: aarch64-pc-windows-msvc
|
||||||
cross: true
|
# cross: true
|
||||||
platform: windows
|
# platform: windows
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -305,9 +305,35 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
cd target/${{ matrix.target }}/release
|
cd target/${{ matrix.target }}/release
|
||||||
zip "../../../${PACKAGE_NAME}.zip" rustfs
|
|
||||||
|
# Determine the binary name based on platform
|
||||||
|
if [[ "${{ matrix.platform }}" == "windows" ]]; then
|
||||||
|
BINARY_NAME="rustfs.exe"
|
||||||
|
else
|
||||||
|
BINARY_NAME="rustfs"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Verify the binary exists before packaging
|
||||||
|
if [[ ! -f "$BINARY_NAME" ]]; then
|
||||||
|
echo "❌ Binary $BINARY_NAME not found in $(pwd)"
|
||||||
|
ls -la
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Create the zip package
|
||||||
|
zip "../../../${PACKAGE_NAME}.zip" "$BINARY_NAME"
|
||||||
|
|
||||||
cd ../../..
|
cd ../../..
|
||||||
|
|
||||||
|
# Verify the package was created
|
||||||
|
if [[ -f "${PACKAGE_NAME}.zip" ]]; then
|
||||||
|
echo "✅ Package created successfully: ${PACKAGE_NAME}.zip"
|
||||||
|
echo "📦 Package size: $(ls -lh ${PACKAGE_NAME}.zip | awk '{print $5}')"
|
||||||
|
else
|
||||||
|
echo "❌ Failed to create package: ${PACKAGE_NAME}.zip"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "package_name=${PACKAGE_NAME}" >> $GITHUB_OUTPUT
|
echo "package_name=${PACKAGE_NAME}" >> $GITHUB_OUTPUT
|
||||||
echo "package_file=${PACKAGE_NAME}.zip" >> $GITHUB_OUTPUT
|
echo "package_file=${PACKAGE_NAME}.zip" >> $GITHUB_OUTPUT
|
||||||
echo "build_type=${BUILD_TYPE}" >> $GITHUB_OUTPUT
|
echo "build_type=${BUILD_TYPE}" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
Reference in New Issue
Block a user