Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create build.yml #39

Merged
merged 10 commits into from
Nov 28, 2023
Merged
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
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

env:
SOLUTION_NAME: Toolkit.Libraries.slnf
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore $SOLUTION_NAME
- name: Build
run: dotnet build --no-restore $SOLUTION_NAME
- name: Test
run: dotnet test --no-build --verbosity normal $SOLUTION_NAME
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

using Microsoft.VisualStudio.TestTools.UnitTesting;
using RageLib.GTA5.ResourceWrappers.PC.Meta;
using RageLib.Services;
using System;
using System.Globalization;
using System.IO;
Expand All @@ -21,7 +22,7 @@ public void Export_Always_CorrectlyExportsXml()
{
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;

var exporter = new MetaXmlExporter();
var exporter = new MetaXmlExporter(JenkinsDictionary.Shared);
var xmlStream = new MemoryStream();

var rootStructure = TestDataset.MakeDataset();
Expand Down
11 changes: 11 additions & 0 deletions Toolkit.Libraries.slnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"solution": {
"path": "Toolkit.sln",
"projects": [
"RageLib.GTA4\\RageLib.GTA4.csproj",
"RageLib.GTA5\\RageLib.GTA5.csproj",
"RageLib.RDR2\\RageLib.RDR2.csproj",
"RageLib\\RageLib.csproj"
]
}
}
1 change: 1 addition & 0 deletions Tools/ArchiveTool/ArchiveTool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>
<WindowsPackageType>None</WindowsPackageType>
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
</PropertyGroup>

<ItemGroup>
Expand Down
5 changes: 3 additions & 2 deletions Tools/TextureTool/TextureTool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
<TargetFramework>net8.0-windows</TargetFramework>
<RootNamespace>TextureTool</RootNamespace>
<AssemblyName>TextureTool</AssemblyName>
<UseWindowsForms>true</UseWindowsForms>
<UseWPF>true</UseWPF>
<UseWindowsForms>true</UseWindowsForms>
<UseWPF>true</UseWPF>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
</PropertyGroup>

<ItemGroup>
Expand Down
Loading