From a7ed26039f92466b070e0dcf23b558485f3e8f38 Mon Sep 17 00:00:00 2001 From: NathanKell Date: Tue, 7 Nov 2023 00:08:09 -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 4634e88..6615eff 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/ROHeatshields.sln cp -v ${GITHUB_WORKSPACE}/Source/obj/x64/Release/ROHeatshields.dll ${GITHUB_WORKSPACE}/GameData/ROHeatshields/Plugins/ROHeatshields.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 169c162..9cd6ede 100644 --- a/.github/workflows/buildAndTest.yml +++ b/.github/workflows/buildAndTest.yml @@ -46,7 +46,12 @@ jobs: rm -f ${GITHUB_WORKSPACE}/GameData/ROHeatshields/Plugins/*.dll msbuild /p:Configuration=Release /p:ReferencePath="${{ steps.download-assemblies.outputs.ksp-dll-path }}" ${GITHUB_WORKSPACE}/Source/ROHeatshields.sln cp -v ${GITHUB_WORKSPACE}/Source/obj/x64/Release/ROHeatshields.dll ${GITHUB_WORKSPACE}/GameData/ROHeatshields/Plugins/ROHeatshields.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: |