-
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.
chore(v0.0.5): Ship TC libraries with nuget package
The build artifact snappy.library, as well as latest rplc.library are being packed with nuget. This is a prerequisite for the CLI install command.
- Loading branch information
1 parent
18a8552
commit 58e93cc
Showing
3 changed files
with
61 additions
and
44 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 |
---|---|---|
|
@@ -55,8 +55,7 @@ jobs: | |
with: | ||
name: snappy | ||
path: | | ||
**/*.compiled-library | ||
**/*.library | ||
**/*.library | ||
cd-tchaxx-snappy-cli: | ||
needs: ci-tchaxx-snappy-cli | ||
|
@@ -74,10 +73,22 @@ jobs: | |
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: ${{ env.dotnet_versions }} | ||
|
||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: snappy | ||
path: .dist/ | ||
|
||
- name: Download latest rplc.library | ||
run: curl -L https://github.com/tchaxx/rplc/releases/latest/download/rplc.library -o .dist/rplc.library | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore ${{ env.solution }} | ||
- name: Build | ||
run: dotnet build -c Release --no-restore ${{ env.solution }} | ||
- name: Pack | ||
env: | ||
INCLUDE_TC_LIBRARIES: true | ||
run: dotnet pack -c Release --no-restore ${{ env.solution }} | ||
|
||
- name: Publish on version change | ||
id: publish_nuget | ||
uses: alirezanet/[email protected] | ||
|
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 |
---|---|---|
|
@@ -421,4 +421,6 @@ LineIDs.dbg.bak | |
_Boot/ | ||
_CompileInfo/ | ||
_Libraries/ | ||
_Repository/ | ||
_Repository/ | ||
|
||
.dist/ |
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,46 +1,50 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<RepositoryUrl>https://github.com/TcHaxx/snappy</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<PackageTags>snapshot-testing; test-framework; unit-test; twincat; beckhoff;</PackageTags> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
<PackageProjectUrl>https://github.com/TcHaxx/snappy</PackageProjectUrl> | ||
<Description>A Snapshot Testing framework for TwinCAT 3</Description> | ||
<Copyright>Copyright (c) 2024 densogiaichned</Copyright> | ||
<Title>TwinCAT Snapshot Testing framework</Title> | ||
<Version>0.0.4</Version> | ||
<AssemblyVersion>$(Version)</AssemblyVersion> | ||
<FileVersion>$(Version)</FileVersion> | ||
<PackAsTool>True</PackAsTool> | ||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | ||
<Authors>densogiaichned</Authors> | ||
<Company>TcHaxx</Company> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<RepositoryUrl>https://github.com/TcHaxx/snappy</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<PackageTags>snapshot-testing; test-framework; unit-test; twincat; beckhoff;</PackageTags> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
<PackageProjectUrl>https://github.com/TcHaxx/snappy</PackageProjectUrl> | ||
<Description>A Snapshot Testing framework for TwinCAT 3</Description> | ||
<Copyright>Copyright (c) 2024 densogiaichned</Copyright> | ||
<Title>TwinCAT Snapshot Testing framework</Title> | ||
<Version>0.0.5</Version> | ||
<AssemblyVersion>$(Version)</AssemblyVersion> | ||
<FileVersion>$(Version)</FileVersion> | ||
<PackAsTool>True</PackAsTool> | ||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | ||
<Authors>densogiaichned</Authors> | ||
<Company>TcHaxx</Company> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\..\LICENSE"> | ||
<Pack>True</Pack> | ||
<PackagePath>\</PackagePath> | ||
</None> | ||
<None Include="..\..\README.md"> | ||
<Pack>True</Pack> | ||
<PackagePath>\</PackagePath> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="..\..\LICENSE"> | ||
<Pack>True</Pack> | ||
<PackagePath>\</PackagePath> | ||
</None> | ||
<None Include="..\..\README.md"> | ||
<Pack>True</Pack> | ||
<PackagePath>\</PackagePath> | ||
</None> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" /> | ||
<PackageReference Include="CommandLineParser" Version="2.9.1" /> | ||
<PackageReference Include="Serilog.Extensions.Hosting" Version="8.0.0" /> | ||
<PackageReference Include="Serilog.Settings.Configuration" Version="8.0.0" /> | ||
<PackageReference Include="Serilog.Sinks.Console" Version="5.0.1" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" /> | ||
<PackageReference Include="CommandLineParser" Version="2.9.1" /> | ||
<PackageReference Include="Serilog.Extensions.Hosting" Version="8.0.0" /> | ||
<PackageReference Include="Serilog.Settings.Configuration" Version="8.0.0" /> | ||
<PackageReference Include="Serilog.Sinks.Console" Version="5.0.1" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\TcHaxx.Snappy.TcADS\TcHaxx.Snappy.TcADS.csproj" /> | ||
<ProjectReference Include="..\TcHaxx.Snappy.Verifier\TcHaxx.Snappy.Verifier.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\TcHaxx.Snappy.TcADS\TcHaxx.Snappy.TcADS.csproj" /> | ||
<ProjectReference Include="..\TcHaxx.Snappy.Verifier\TcHaxx.Snappy.Verifier.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="$(INCLUDE_TC_LIBRARIES)!=''"> | ||
<Content Include="../../.dist/snappy.library" Pack="true" PackagePath="content/.dist/snappy.library" /> | ||
<Content Include="../../.dist/rplc.library" Pack="true" PackagePath="content/.dist/rplc.library" /> | ||
</ItemGroup> | ||
</Project> |