From bef95284e85723a4a18e9b895fdf83efd4ea80bf Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Mon, 25 Nov 2024 18:41:49 +0300 Subject: [PATCH] Delete .lib files before uploading artifact for Windows --- .github/workflows/build.yml | 7 +++++++ .github/workflows/manual.yml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6da018625..4fbf22658 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -87,6 +87,13 @@ jobs: shell: bash run: echo "gamedir=$(grep build/CMakeCache.txt -Ee 'GAMEDIR:STRING=[a-z]+' | cut -d '=' -f 2)" >> $GITHUB_OUTPUT id: extract_gamedir + - name: Delete .lib files from dist + if: startsWith(matrix.os, 'windows') + run: | + Remove-Item -Force -Path dist/${{ steps.extract_gamedir.outputs.gamedir }}/cl_dlls/client.lib + Remove-Item -Force -Path dist/${{ steps.extract_gamedir.outputs.gamedir }}/dlls/*.lib + Remove-Item -Force -Path dist-vgui/${{ steps.extract_gamedir.outputs.gamedir }}/cl_dlls/client.lib + Remove-Item -Force -Path dist-vgui/${{ steps.extract_gamedir.outputs.gamedir }}/dlls/*.lib - name: Upload linux artifact if: startsWith(matrix.os, 'ubuntu') && matrix.cc == 'gcc' uses: actions/upload-artifact@v4 diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index 270da8750..60f7e689b 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -102,7 +102,7 @@ jobs: if: startsWith(matrix.os, 'windows') run: | Remove-Item -Force -Path dist/${{ steps.extract_gamedir.outputs.gamedir }}/cl_dlls/client.lib - Remove-Item -Force -Path dist/${{ steps.extract_gamedir.outputs.gamedir }}/dlls/hl.lib + Remove-Item -Force -Path dist/${{ steps.extract_gamedir.outputs.gamedir }}/dlls/*.lib - name: Upload linux artifact if: startsWith(matrix.os, 'ubuntu') uses: actions/upload-artifact@v4