Skip to content

Commit a8b226e

Browse files
committed
Only AOT when explicitly stated
1 parent 9d85c94 commit a8b226e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.fsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pipeline "Build" {
6161
stage "Build" { run "dotnet build -c Release --tl" }
6262
stage "UnitTests" { run "dotnet test -c Release --tl" }
6363
stage "Pack" { run "dotnet pack --no-restore -c Release --tl" }
64-
stage "Publish" { run "dotnet publish --no-restore -r linux-x64 -c Release" }
64+
stage "PublishAOT" { run "dotnet publish src/Fantomas/Fantomas.fsproj -r linux-x64 -c Release -p:DoPublishAot=yes --tl" }
6565
stage "Docs" {
6666
whenNot { platformOSX }
6767
envVars

src/Fantomas/Fantomas.fsproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<IsPackable>true</IsPackable>
1313
<RootNamespace>Fantomas</RootNamespace>
1414
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
15-
<PublishAot>true</PublishAot>
15+
<PublishAot Condition=" '$(DoPublishAot)' != ''">true</PublishAot>
1616
</PropertyGroup>
1717
<ItemGroup>
1818
<ProjectReference Include="..\Fantomas.Client\Fantomas.Client.fsproj" />

0 commit comments

Comments
 (0)