Parcourir la source

【修复】更新 Rust 设置和缓存配置

- 在 setup-rust 和 rust-cache 步骤中添加 working-directory 设置
- 更新 index.html 中的 markdown-html 版本号
PJ568 il y a 1 an
Parent
commit
ac4ad87c75
2 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 3 0
      action.yml
  2. 1 1
      index.html

+ 3 - 0
action.yml

@@ -22,11 +22,14 @@ runs:
     - name: Setup Rust
       uses: MatteoH2O1999/setup-rust@v1
       if: ${{ inputs.use-minified == 'true' || inputs.use-all-in-one == 'true' }}
+      working-directory: ${{ github.action_path }}
 
     - name: Cache Rust dependencies
       if: ${{ inputs.use-minified == 'true' || inputs.use-all-in-one == 'true' }}
       uses: Swatinem/rust-cache@v2
+      working-directory: 
       with:
+        workspaces: "${{ github.action_path }} -> target"
         cache-on-failure: "true"
 
     - name: Build project

+ 1 - 1
index.html

@@ -1,7 +1,7 @@
 <!doctype html>
 
 <html>
-<markdown-html version="1.17.2" author="PJ568" repo="https://github.com/PJ-568/markdown.html"
+<markdown-html version="1.17.3" author="PJ568" repo="https://github.com/PJ-568/markdown.html"
   license="CC BY-SA 4.0 International"></markdown-html>
 
 <head>