forked from ScottPlot/ScottPlot
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CICD: use shell scripts for core operations
- Loading branch information
Showing
10 changed files
with
91 additions
and
90 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
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 @@ | ||
echo check and warn of formatting errors |
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 @@ | ||
echo check and fix formatting |
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,11 @@ | ||
#!/bin/bash | ||
|
||
while IFS=$'\n' read -r line; do | ||
time1=$(date +%s) | ||
echo "Building: $line" | ||
dotnet restore "$line" | ||
dotnet build "$line" --configuration Release /p:TargetFrameworks="net8.0" | ||
time2=$(date +%s) | ||
elapsed=$((time2 - time1)) | ||
echo "$line built in $elapsed seconds" | ||
done <".github/workflows/scripts/check-projects.txt" |
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,5 @@ | ||
src/ScottPlot5/ScottPlot5/ScottPlot.csproj | ||
src/ScottPlot5/ScottPlot5 Tests/ScottPlot Tests.csproj | ||
src/ScottPlot5/ScottPlot5 Cookbook/ScottPlot Cookbook.csproj | ||
src/ScottPlot5/ScottPlot5 Demos/ScottPlot5 WinForms Demo/WinForms Demo.csproj | ||
src/ScottPlot4/ScottPlot/ScottPlot.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
.github/workflows/scripts/check-files.sh | ||
|
||
for filepath in "${project_files[@]}"; do | ||
dotnet test "$filepath" --configuration Release --no-build --verbosity minimal | ||
done |
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,7 @@ | ||
:: ScottPlot5 | ||
dotnet restore "src\ScottPlot4\ScottPlot5.sln" | ||
dotnet build "src\ScottPlot4\ScottPlot5.sln" --configuration Release | ||
|
||
:: ScottPlot4 | ||
dotnet restore "src\ScottPlot4\ScottPlot4.sln" | ||
dotnet build "src\ScottPlot4\ScottPlot4.sln" --configuration Release |
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,6 @@ | ||
:: ScottPlot5 | ||
dotnet workload install maui-android maui-ios maccatalyst wasm-tools | ||
dotnet workload restore "src\ScottPlot5\ScottPlot5.sln" | ||
|
||
:: ScottPlot4 | ||
dotnet workload restore "src\ScottPlot4\ScottPlot4.sln" |
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,5 @@ | ||
:: ScottPlot5 | ||
dotnet test "src\ScottPlot5\ScottPlot5.sln" --configuration Release --no-build --verbosity minimal | ||
|
||
:: ScottPlot4 | ||
dotnet test "src\ScottPlot5\ScottPlot4.sln" --configuration Release --no-build --verbosity minimal |