Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,24 @@ jobs:
- name: Create local_packages Directory
run: mkdir -p local_packages

- name: Build Release
run: cd Terminal.Gui && dotnet build --configuration Release
- name: Pack Release
run: dotnet pack --configuration Release --output ./local_packages

- name: Restore dependencies
run: dotnet restore --source ./local_packages
run: cd Terminal.Gui && dotnet pack --configuration Release --output ./local_packages

- name: Build Release
run: dotnet build --configuration Release
- name: Build SelfContained
run: |
cd SelfContained
dotnet remove reference "..\Terminal.Gui\Terminal.Gui.csproj"
dotnet add package Terminal.Gui
dotnet build --configuration Release

- name: Build NativeAot
run: |
cd NativeAot
dotnet remove package Terminal.Gui
dotnet add package Terminal.Gui
dotnet build --configuration Release

# Note: this step is currently not writing to the gist for some reason
# - name: Create Test Coverage Badge
Expand Down
18 changes: 18 additions & 0 deletions NativeAot/nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<configuration>
<config>
<add key="defaultPushSource" value="https://api.nuget.org/v3/index.json" />
</config>
<packageSources>
<clear />
<add key="local_packages" value="../Terminal.Gui/local_packages" />
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
</packageSources>
<packageSourceMapping>
<packageSource key="local_packages">
<package pattern="Terminal.Gui" />
</packageSource>
<packageSource key="nuget">
<package pattern="*" />
</packageSource>
</packageSourceMapping>
</configuration>
13 changes: 4 additions & 9 deletions SelfContained/SelfContained.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@
<DebugType>embedded</DebugType>
</PropertyGroup>

<ItemGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<ProjectReference Include="..\Terminal.Gui\Terminal.Gui.csproj" />
<TrimmerRootAssembly Include="Terminal.Gui" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<PackageReference Include="Terminal.Gui" Version="2.0.0" />
<TrimmerRootAssembly Include="Terminal.Gui" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Terminal.Gui\Terminal.Gui.csproj" />
<TrimmerRootAssembly Include="Terminal.Gui" />
</ItemGroup>

</Project>
18 changes: 18 additions & 0 deletions SelfContained/nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<configuration>
<config>
<add key="defaultPushSource" value="https://api.nuget.org/v3/index.json" />
</config>
<packageSources>
<clear />
<add key="local_packages" value="../Terminal.Gui/local_packages" />
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
</packageSources>
<packageSourceMapping>
<packageSource key="local_packages">
<package pattern="Terminal.Gui" />
</packageSource>
<packageSource key="nuget">
<package pattern="*" />
</packageSource>
</packageSourceMapping>
</configuration>
26 changes: 0 additions & 26 deletions nuget.config

This file was deleted.