From 951c08ec4f9cd5da8befddce41eb7a020733ed2d Mon Sep 17 00:00:00 2001 From: houseme Date: Thu, 6 Mar 2025 00:00:57 +0800 Subject: [PATCH] improve add cache --- .github/workflows/build.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 75fb88915..ec3c0d770 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -85,8 +85,19 @@ jobs: # if: startsWith(github.ref, 'refs/tags/') steps: - uses: actions/checkout@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: cargo install dioxus-cli + run: | + if [ ! -f ~/.cargo/bin/dx ]; then + cargo install dioxus-cli + fi - name: Build and Bundle rustfs-gui run: |