improve build.yml

This commit is contained in:
houseme
2025-03-05 23:43:00 +08:00
parent f1f5967117
commit 6690396b65
+8 -3
View File
@@ -77,6 +77,11 @@ jobs:
build-rustfs-gui:
runs-on: ubuntu-latest
needs: build-rustfs
strategy:
matrix:
variant:
- { profile: release, target: x86_64-unknown-linux-gnu }
# if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
@@ -91,13 +96,13 @@ jobs:
if [[ "${{ matrix.variant.target }}" == *"apple-darwin"* ]]; then
dx bundle --platform macos --package-types "macos" --package-types "dmg" --package-types "ios" --release --profile release --out-dir ../../${relaese_path}
elif [[ "${{ matrix.variant.target }}" == *"windows-msvc"* ]]; then
dx bundle --platform windows --package-types "msi" --release --profile release --out-dir ../../target/${relaese_path}
dx bundle --platform windows --package-types "msi" --release --profile release --out-dir ../../${relaese_path}
fi
cd ../..
GUI_ARTIFACT_NAME="rustfs-gui-${{ matrix.variant.profile }}-${{ matrix.variant.target }}"
zip -r ${GUI_ARTIFACT_NAME}.zip target/${{ matrix.variant.target }}/rustfs-gui
zip -r ${GUI_ARTIFACT_NAME}.zip ${relaese_path}/rustfs-gui
echo "gui_artifact_name=${GUI_ARTIFACT_NAME}" >> $GITHUB_OUTPUT
ls -la
ls -la ${relaese_path}
- uses: actions/upload-artifact@v4
with: