Skip to content

Commit 764cad8

Browse files
committed
fix(ci): bypass ARCP.slnx in publish; iterate src/*/ to avoid Linux case-sensitivity failures
ARCP.slnx references src/Arcp/Arcp.csproj and src/Arcp.Cli/Arcp.Cli.csproj (lowercase), but the actual git-tracked paths are src/ARCP/ARCP.csproj and src/ARCP.Cli/ARCP.Cli.csproj (uppercase). On case-insensitive macOS these resolve identically; on Linux they fail with MSB3202. Fix: replace all dotnet restore/build calls that used ARCP.slnx with a shell glob over src/*/ which expands to the filesystem-actual directory names, matching exactly what git tracks.
1 parent 9827098 commit 764cad8

1 file changed

Lines changed: 16 additions & 8 deletions

File tree

.github/workflows/publish.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,27 @@ jobs:
7575
restore-keys: |
7676
${{ runner.os }}-nuget-
7777
78+
# Restore, build, and pack iterate src/ directly rather than using
79+
# ARCP.slnx — the solution file has case-sensitivity mismatches that
80+
# cause MSB3202 on Linux even though they resolve fine on macOS.
7881
- name: Restore
79-
run: dotnet restore ARCP.slnx
82+
run: |
83+
for project in src/*/; do
84+
dotnet restore "$project"
85+
done
8086
8187
- name: Build
82-
run: >
83-
dotnet build ARCP.slnx
84-
--configuration Release
85-
--no-restore
86-
-p:Version=${{ steps.version.outputs.version }}
88+
run: |
89+
for project in src/*/; do
90+
dotnet build "$project" \
91+
--configuration Release \
92+
--no-restore \
93+
-p:Version=${{ steps.version.outputs.version }}
94+
done
8795
8896
- name: Pack
89-
# Pack each library project under src/ individually so that all eight
90-
# packages (Arcp, Arcp.Core, Arcp.Client, Arcp.Runtime, Arcp.AspNetCore,
97+
# Pack each library project under src/ so that all eight packages
98+
# (Arcp, Arcp.Core, Arcp.Client, Arcp.Runtime, Arcp.AspNetCore,
9199
# Arcp.Otel, Arcp.Hosting, Arcp.Cli) land in the artifacts folder.
92100
# --no-build reuses the binaries already produced by the Build step.
93101
run: |

0 commit comments

Comments
 (0)