mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 15:37:02 +00:00
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:
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user