From f5a97b63b9512daddb97ee7527c47c53636af784 Mon Sep 17 00:00:00 2001 From: houseme Date: Thu, 10 Apr 2025 11:49:44 +0800 Subject: [PATCH] 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 --- .github/actions/setup/action.yml | 2 +- .github/workflows/build.yml | 32 +++++++++++++++++--------------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index c7b62a00..f74dc6fb 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -24,7 +24,7 @@ runs: - uses: arduino/setup-protoc@v3 with: - version: "27.0" + version: "30.2" - uses: Nugine/setup-flatc@v1 with: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 30717df3..01e49f6c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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