improve build yml

This commit is contained in:
houseme
2025-03-02 16:51:44 +08:00
parent 09b855a3a9
commit 03c3d4abfe

View File

@@ -25,6 +25,15 @@ jobs:
with:
cache-shared-key: rustfs.${{ matrix.variant.profile }}.${{ matrix.variant.target }}.${{ matrix.variant.glibc }}
- name: Download and Extract Static Assets
run: |
url="https://dl.rustfs.com/console/rustfs-console-latest.zip"
mkdir -p static
curl -L -o static_assets.zip "$url"
unzip -o static_assets.zip -d ./rustfs/static
rm static_assets.zip
ls -la ./rustfs/static
- name: Build
run: |
./scripts/build.py \
@@ -32,15 +41,6 @@ jobs:
--target ${{ matrix.variant.target }} \
--glibc ${{ matrix.variant.glibc }}
- name: Download and Extract Static Assets
run: |
url="https://dl.rustfs.com/console/rustfs-console-latest.zip"
mkdir -p static
curl -L -o static_assets.zip "$url"
unzip -o static_assets.zip -d static
rm static_assets.zip
ls -la static
- name: Package Binary and Static Assets
id: package
run: |
@@ -60,7 +60,7 @@ jobs:
# Create package
mkdir -p ${ARTIFACT_NAME}
cp "$bin_path" ${ARTIFACT_NAME}/rustfs
cp -r static ${ARTIFACT_NAME}/
# cp -r static ${ARTIFACT_NAME}/
zip -r ${ARTIFACT_NAME}.zip ${ARTIFACT_NAME}
ls -la