-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added <PublishTrimmed>true</PublishTrimmed> * Removed jet test * Splitted Jet Buil * trued tó stop the MDAC Depended Assembly from trimming * more update * use publish trimmed only for linux target * JetDatabase: throw NotSupportedException for Linux and Windows 32bit * Fixed build * Added tests for LemonTree.Pipeline.Tools.RemovePrerenderedDiagrams * Added <PublishTrimmed>true</PublishTrimmed> * Removed jet test * Splitted Jet Buil * trued tó stop the MDAC Depended Assembly from trimming * more update * use publish trimmed only for linux target * JetDatabase: throw NotSupportedException for Linux and Windows 32bit * Fixed build * Added tests for LemonTree.Pipeline.Tools.RemovePrerenderedDiagrams * changed publish: win-x86: - single exe, not self contained linux-x64 - single-exe, self-contained and trimmed --------- Co-authored-by: joHerbst72 <144138691+joHerbst72@users.noreply.github.com> Co-authored-by: Johannes Herbst <johannes.herbst@lieberlieber.com>
- Loading branch information
1 parent
7755964
commit 7de2859
Showing
9 changed files
with
138 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: test | ||
name: test LemonTree.Pipeline.Tools.ModelCheck | ||
|
||
on: | ||
workflow_call: | ||
|
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,69 @@ | ||
name: test LemonTree.Pipeline.Tools.RemovePrerenderedDiagrams | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
runs-on: | ||
required: true | ||
type: string | ||
model-path: | ||
required: true | ||
type: string | ||
expected-exitcode: | ||
type: number | ||
default: 0 | ||
|
||
jobs: | ||
TestRemovePrerenderedDiagramsOnCleanRunner: | ||
runs-on: ${{inputs.runs-on}} | ||
timeout-minutes: 15 | ||
steps: | ||
|
||
- name: Download LemonTree.Pipeline.Tools.ModelCheck.Models | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: LemonTree.Pipeline.Tools.ModelCheck.Models | ||
|
||
- name: Download LemonTree.Pipeline.Tools.RemovePrerenderedDiagrams.Linux | ||
if: runner.os == 'Linux' | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: LemonTree.Pipeline.Tools.RemovePrerenderedDiagrams.Linux | ||
|
||
- name: Download LemonTree.Pipeline.Tools.RemovePrerenderedDiagrams.Windows | ||
if: runner.os == 'Windows' | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: LemonTree.Pipeline.Tools.RemovePrerenderedDiagrams.Windows | ||
|
||
- name: Run LemonTree.Pipeline.Tools.RemovePrerenderedDiagrams | ||
shell: pwsh | ||
run: | | ||
Write-Output "# Modelcheck of ${{inputs.model-path}} on ${{runner.os}}" >> $env:GITHUB_STEP_SUMMARY | ||
Write-Output "Starting validation" | ||
if ('${{runner.os}}' -eq 'Linux') { | ||
#workaround because github artifacts logic doesn't maintain properties | ||
chmod +x ./LemonTree.Pipeline.Tools.RemovePrerenderedDiagrams | ||
./LemonTree.Pipeline.Tools.RemovePrerenderedDiagrams --model "${{inputs.model-path}}" | ||
} | ||
elseif ('${{runner.os}}' -eq 'Windows') { | ||
./LemonTree.Pipeline.Tools.RemovePrerenderedDiagrams.exe --model "${{inputs.model-path}}" | ||
} | ||
else { | ||
Write-Output "${{runner.os}} is not supported" | ||
Exit -1 | ||
} | ||
if (${{inputs.expected-exitcode}} -eq $LASTEXITCODE) { | ||
Write-Output "Finished removing with expected Exitcode: $LASTEXITCODE" | ||
Write-Output "# Finished removing with esxpected Exitcode: $LASTEXITCODE" >> $env:GITHUB_STEP_SUMMARY | ||
exit 0 | ||
} | ||
else { | ||
Write-Output "Finished removing with unexpected Exitcode: $LASTEXITCODE" | ||
Write-Output "# Finished removing with unexpected Exitcode: $LASTEXITCODE" >> $env:GITHUB_STEP_SUMMARY | ||
exit -1 | ||
} |
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
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
41 changes: 25 additions & 16 deletions
41
src/LemonTree.Pipeline.Tools/LemonTree.Pipeline.Tools.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 |
---|---|---|
@@ -1,20 +1,29 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<OutputType>Library</OutputType> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<StartupObject /> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> | ||
<OutputPath>bin\x86\Debug\</OutputPath> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> | ||
<OutputPath>bin\x86\Release\</OutputPath> | ||
</PropertyGroup> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<OutputType>Library</OutputType> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<StartupObject /> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> | ||
<OutputPath>bin\x86\Debug\</OutputPath> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> | ||
<OutputPath>bin\x86\Release\</OutputPath> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<PublishTrimmed>false</PublishTrimmed> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<IsTrimmable>false</IsTrimmable> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<BuiltInComInteropSupport>true</BuiltInComInteropSupport> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="System.Data.OleDb" Version="7.0.0" /> | ||
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.117" /> | ||
</ItemGroup> | ||
</ItemGroup> | ||
</Project> |
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