Skip to content

Commit

Permalink
Use nuget build tools for real
Browse files Browse the repository at this point in the history
  • Loading branch information
drewcassidy committed Sep 6, 2024
1 parent 34c2857 commit 8b9462f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_call:

env:
KSP_ROOT: /tmp/kspfoobar
KSP_ROOT: /tmp/ksp
RELEASE_STAGING: /tmp/release

jobs:
Expand All @@ -24,13 +24,13 @@ jobs:
uses: drewcassidy/[email protected]
id: yaclog-show

- uses: drewcassidy/KSPBuildTools/.github/actions/setup-ckan@get-required-tools
- uses: KSPModdingLibs/KSPBuildTools/.github/actions/setup-ckan@0.0.2-alpha.0

- uses: drewcassidy/KSPBuildTools/.github/actions/compile@get-required-tools
- uses: KSPModdingLibs/KSPBuildTools/.github/actions/compile@0.0.2-alpha.0
with:
ksp-zip-url: https://github.com/KSPModdingLibs/KSPLibs/raw/main/KSP-1.12.5.zip

- uses: drewcassidy/KSPBuildTools/.github/actions/assemble-release@get-required-tools
- uses: KSPModdingLibs/KSPBuildTools/.github/actions/assemble-release@0.0.2-alpha.0

- name: Publish to Github
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "KSPBuildTools"]
path = KSPBuildTools
url = https://github.com/KSPModdingLibs/KSPBuildTools.git
1 change: 0 additions & 1 deletion KSPBuildTools
Submodule KSPBuildTools deleted from b5be26
14 changes: 7 additions & 7 deletions Source/Shabby.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<ItemGroup>
<PackageReference Include="KSPBuildTools" Version="0.0.0-*" />
<PackageReference Include="KSPBuildTools" Version="0.0.2-alpha.0" />
<PackageReference Include="MinVer" Version="5.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>

<!-- Static Properties -->
Expand All @@ -15,7 +19,6 @@
<AssemblyCopyright>2024 KSPModdingLibs Contributors</AssemblyCopyright>
<AssemblyName>Shabby</AssemblyName>
<RepoRootPath>$(ProjectDir)../</RepoRootPath>
<StagingGameData></StagingGameData>
</PropertyGroup>

<!-- DLL Dependencies-->
Expand All @@ -35,20 +38,17 @@

<!-- Version Files -->
<ItemGroup>
<VersionFile Include=".">
<KSPVersionFile Include=".">
<Destination>$(RepoRootPath)GameData/Shabby/Shabby.version</Destination>
</VersionFile>
</KSPVersionFile>
</ItemGroup>

<PropertyGroup>
<GetVersionFromGit>true</GetVersionFromGit>
<GenerateKSPAssemblyAttribute>true</GenerateKSPAssemblyAttribute>
<GenerateKSPAssemblyDependencyAttributes>true</GenerateKSPAssemblyDependencyAttributes>
</PropertyGroup>

<Target Name="MakeModDir" BeforeTargets="BeforeBuild">
<MakeDir Directories="$(RepoRootPath)GameData/Shabby" />
</Target>

<!-- <Import Project="$(ProjectDir)../KSPBuildTools/KSPCommon.targets" />-->
</Project>

0 comments on commit 8b9462f

Please sign in to comment.