feat: Rm workspace crates version before caching (#147)

Fixed #146

 - Set all `package.version` in `Cargo.toml` to `0.0.0`
 - Set `{build-, dev-, }dependencies` of workspace crates to `0.0.0`
 - Remove workspace crates from `Cargo.lock` before caching
 - Sort all toml objects before hashing them as json

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU
2023-06-18 17:29:44 +10:00
committed by GitHub
parent 988c164c3d
commit 3d4000164d
5 changed files with 8419 additions and 8 deletions

View File

@@ -26,7 +26,8 @@
"@actions/core": "^1.10.0",
"@actions/exec": "^1.1.1",
"@actions/glob": "^0.4.0",
"@actions/io": "^1.1.3"
"@actions/io": "^1.1.3",
"toml": "^3.0.0"
},
"devDependencies": {
"@vercel/ncc": "^0.36.1",