-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ReadyToRun to improve performance (#261)
Motivation ---------- JIT of the C# compiler is very expensive when running and the cost can be significantly reduced by publishing the command line app ReadyToRun. Modifications ------------- - Set PublishReadyToRun on Yardarm.CommandLine - Update Dockerfile to publish the app rather than install it as a global tool so it gets the ReadyToRun build output - Fixup .dockerignore to reduce the size of the build context - Update SDK to more easily support multiple runtime identifiers and to use the publish output so it gets the ReadyToRun build output - Split the build in GitHub actions to separately build the main app and the SDK so that the SDK variant may be built on Windows where all target runtime identifers are supported for ReadyToRun - Update the Docker build to build both x64 and arm64 variants of the image
- Loading branch information
1 parent
d27eabb
commit 9ea2841
Showing
6 changed files
with
139 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
src/.vs | ||
src/*/bin | ||
src/*/obj | ||
**/.vs | ||
**/bin | ||
**/obj | ||
**/artifacts | ||
**/*.user | ||
.github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
mkdir -p ./bin | ||
curl -sSL https://api.adv.centeredge.io/v1/swagger/api/swagger.json -o ./bin/mashtub.json | ||
|
||
# Basic test of the SDK | ||
dotnet build -c Release src/sdk/Yardarm.Sdk.Test/Yardarm.Sdk.Test.csproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters