mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 15:37:02 +00:00
improve build.yml
This commit is contained in:
@@ -77,6 +77,11 @@ jobs:
|
|||||||
build-rustfs-gui:
|
build-rustfs-gui:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build-rustfs
|
needs: build-rustfs
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
variant:
|
||||||
|
- { profile: release, target: x86_64-unknown-linux-gnu }
|
||||||
# if: startsWith(github.ref, 'refs/tags/')
|
# if: startsWith(github.ref, 'refs/tags/')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -91,13 +96,13 @@ jobs:
|
|||||||
if [[ "${{ matrix.variant.target }}" == *"apple-darwin"* ]]; then
|
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}
|
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
|
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
|
fi
|
||||||
cd ../..
|
cd ../..
|
||||||
GUI_ARTIFACT_NAME="rustfs-gui-${{ matrix.variant.profile }}-${{ matrix.variant.target }}"
|
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
|
echo "gui_artifact_name=${GUI_ARTIFACT_NAME}" >> $GITHUB_OUTPUT
|
||||||
ls -la
|
ls -la ${relaese_path}
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user