fix(Workflow):删除obj缓存 (#336)

Removed caching of obj/ folders to prevent cross-version incremental build issues while retaining NuGet package caching.
This commit is contained in:
doudou0720
2025-12-28 10:22:18 +08:00
committed by GitHub
parent afb65eb908
commit 7a4d33b7da
-16
View File
@@ -142,29 +142,13 @@ jobs:
uses: actions/cache@v4
with:
path: |
# NuGet 全局包缓存(已下载的包)
~/.nuget/packages
# NuGet 缓存目录(包索引)
~\AppData\Local\NuGet\Cache
key: ${{ runner.os }}-nuget-v2-${{ hashFiles('**/*.csproj', '**/packages.config', '**/*.sln', '**/nuget.config') }}
restore-keys: |
${{ runner.os }}-nuget-v2-
- name: Cache obj/ folders
id: cache-obj
uses: actions/cache@v4
with:
path: |
# MSBuild 生成的 obj/ 文件夹
Ink Canvas/obj
key: ${{ runner.os }}-obj-v2-${{ github.sha }}
restore-keys: |
${{ runner.os }}-obj-v2-
- name: "Cache debug: show cache hit status"
run: |
echo "NuGet cache hit: ${{ steps.cache-nuget.outputs.cache-hit }}"
echo "Obj cache hit: ${{ steps.cache-obj.outputs.cache-hit }}"
# Removed caching of obj/ folders to avoid cross-version incremental build issues
# NuGet packages will still be cached; always run restore to ensure packages are present