chore(ci): optimize build workflow and update protoc version

- Update protoc version from 27.0 to 30.2 for better compatibility
- Improve build workflow parameters handling
This commit is contained in:
houseme
2025-04-10 11:49:44 +08:00
parent 6d31834799
commit f5a97b63b9
2 changed files with 18 additions and 16 deletions

View File

@@ -24,7 +24,7 @@ runs:
- uses: arduino/setup-protoc@v3
with:
version: "27.0"
version: "30.2"
- uses: Nugine/setup-flatc@v1
with:

View File

@@ -16,10 +16,10 @@ jobs:
strategy:
matrix:
variant:
- { profile: dev, target: x86_64-unknown-linux-musl, glibc: "default" }
# - { profile: dev, target: x86_64-unknown-linux-musl, glibc: "default" }
- { profile: release, target: x86_64-unknown-linux-musl, glibc: "default" }
- { profile: release, target: x86_64-unknown-linux-gnu, glibc: "default" }
- { profile: release, target: x86_64-unknown-linux-gnu, glibc: "2.31" }
# - { profile: release, target: x86_64-unknown-linux-gnu, glibc: "2.31" }
steps:
- uses: actions/checkout@v4
@@ -102,20 +102,22 @@ jobs:
ls -R
unzip -o -j "rustfs-${{ matrix.variant.profile }}-${{ matrix.variant.target }}.zip" -d ./cli/rustfs-gui/embedded-rustfs/
ls -la cli/rustfs-gui/embedded-rustfs
- name: Cache dioxus-cli
uses: actions/cache@v4
# - name: Cache dioxus-cli
# uses: actions/cache@v4
# with:
# path: ~/.cargo/bin/dx
# key: ${{ runner.os }}-dioxus-cli-${{ hashFiles('**/Cargo.lock') }}
# restore-keys: |
# ${{ runner.os }}-dioxus-cli-
#
# - name: Install dioxus-cli
# run: |
# if [ ! -f ~/.cargo/bin/dx ]; then
# cargo install dioxus-cli
# fi
- uses: taiki-e/cache-cargo-install-action@v2
with:
path: ~/.cargo/bin/dx
key: ${{ runner.os }}-dioxus-cli-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-dioxus-cli-
- name: Install dioxus-cli
run: |
if [ ! -f ~/.cargo/bin/dx ]; then
cargo install dioxus-cli
fi
tool: dioxus-cli
- name: Build and Bundle rustfs-gui
run: |
ls -la