From 7c299bb2178003883655227f0186a17e15579b8d Mon Sep 17 00:00:00 2001 From: NathanKell Date: Tue, 7 Nov 2023 00:09:53 -0800 Subject: [PATCH] Update actions to remove excess dlls --- .github/workflows/attachReleaseArtifacts.yml | 5 +++++ .github/workflows/buildAndTest.yml | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/attachReleaseArtifacts.yml b/.github/workflows/attachReleaseArtifacts.yml index 4ee6f17..f3e6c2e 100644 --- a/.github/workflows/attachReleaseArtifacts.yml +++ b/.github/workflows/attachReleaseArtifacts.yml @@ -47,6 +47,11 @@ jobs: msbuild /p:Configuration=Release /p:ReferencePath="${{ steps.download-assemblies.outputs.ksp-dll-path }}" ${GITHUB_WORKSPACE}/Source/Renamer.sln cp -v ${GITHUB_WORKSPACE}/Source/Renamer/obj/Release/Renamer.dll ${GITHUB_WORKSPACE}/GameData/KerbalRenamer/plugins/Renamer.dll + - name: Remove excess DLLs + uses: KSP-RO/BuildTools/remove-excess-dlls@master + with: + path: ${GITHUB_WORKSPACE}/GameData/ + - name: Update version file uses: KSP-RO/BuildTools/update-version-file@master with: diff --git a/.github/workflows/buildAndTest.yml b/.github/workflows/buildAndTest.yml index e46c7c1..f6ae4bd 100644 --- a/.github/workflows/buildAndTest.yml +++ b/.github/workflows/buildAndTest.yml @@ -46,7 +46,12 @@ jobs: rm -f ${GITHUB_WORKSPACE}/GameData/KerbalRenamer/plugins/*.dll msbuild /p:Configuration=Release /p:ReferencePath="${{ steps.download-assemblies.outputs.ksp-dll-path }}" ${GITHUB_WORKSPACE}/Source/Renamer.sln cp -v ${GITHUB_WORKSPACE}/Source/Renamer/obj/Release/Renamer.dll ${GITHUB_WORKSPACE}/GameData/KerbalRenamer/plugins/Renamer.dll - + + - name: Remove excess DLLs + uses: KSP-RO/BuildTools/remove-excess-dlls@master + with: + path: ${GITHUB_WORKSPACE}/GameData/ + - name: Assemble release id: assemble-release run: |