Skip to content

Commit d8a9ecb

Browse files
committed
fix source build of aspire when CI=true
Signed-off-by: WANG Xuerui <[email protected]>
1 parent 4d83b63 commit d8a9ecb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

_functions.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ build_vmr_stage1() {
124124
-v detailed
125125
/p:PortableBuild=true
126126
)
127-
./build.sh "${args[@]}"
127+
# CI=true interferes with dotnet/aspire's build
128+
# see https://github.com/dotnet/dotnet/blob/v9.0.0-rc.1.24431.7/src/aspire/Directory.Build.targets#L18
129+
CI= ./build.sh "${args[@]}"
128130

129131
_detect_built_version artifacts/assets/Release
130132
mv artifacts/assets/Release/*.tar.* "$OUT_DIR"/
@@ -211,7 +213,9 @@ build_vmr_stage2() {
211213
/p:PortableRid="$TARGET_RID"
212214
/p:TargetArchitecture="$TARGET_ARCH"
213215
)
214-
./build.sh "${args[@]}"
216+
# CI=true interferes with dotnet/aspire's build
217+
# see https://github.com/dotnet/dotnet/blob/v9.0.0-rc.1.24431.7/src/aspire/Directory.Build.targets#L18
218+
CI= ./build.sh "${args[@]}"
215219

216220
mv artifacts/assets/Release/*.tar.* "$OUT_DIR"/
217221

0 commit comments

Comments
 (0)