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
+1 -1
View File
@@ -24,7 +24,7 @@ runs:
- uses: arduino/setup-protoc@v3 - uses: arduino/setup-protoc@v3
with: with:
version: "27.0" version: "30.2"
- uses: Nugine/setup-flatc@v1 - uses: Nugine/setup-flatc@v1
with: with:
+17 -15
View File
@@ -16,10 +16,10 @@ jobs:
strategy: strategy:
matrix: matrix:
variant: 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-musl, glibc: "default" }
- { profile: release, target: x86_64-unknown-linux-gnu, 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: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -102,20 +102,22 @@ jobs:
ls -R ls -R
unzip -o -j "rustfs-${{ matrix.variant.profile }}-${{ matrix.variant.target }}.zip" -d ./cli/rustfs-gui/embedded-rustfs/ unzip -o -j "rustfs-${{ matrix.variant.profile }}-${{ matrix.variant.target }}.zip" -d ./cli/rustfs-gui/embedded-rustfs/
ls -la cli/rustfs-gui/embedded-rustfs ls -la cli/rustfs-gui/embedded-rustfs
- name: Cache dioxus-cli # - name: Cache dioxus-cli
uses: actions/cache@v4 # 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: with:
path: ~/.cargo/bin/dx tool: dioxus-cli
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
- name: Build and Bundle rustfs-gui - name: Build and Bundle rustfs-gui
run: | run: |
ls -la ls -la