From ba58e4f436ee96209fe09ca0da033ea1f07dfaab Mon Sep 17 00:00:00 2001 From: "Rodrigo B. de Oliveira" Date: Fri, 3 Jan 2025 12:35:41 -0300 Subject: [PATCH] add custom pack step on Windows --- .github/workflows/builds.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 931276c..e1cab65 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -314,9 +314,23 @@ jobs: APPLE_DEV_TEAM_ID: ${{ secrets.APPLE_DEV_TEAM_ID }} APPLE_DEV_APP_ID: ${{ secrets.APPLE_DEV_APP_ID }} + - name: Windows - Delete compilation files + if: ${{ matrix.platform == 'windows' }} + shell: pwsh + run: | + Remove-Item bin/* -Include *.exp,*.lib,*.pdb -Force + - name: Pack + if: ${{ matrix.platform != 'windows' }} run: make pack + - name: Pack - Windows + if: ${{ matrix.platform == 'windows' }} + run: | + New-Item -ItemType Directory -Path "bin/pack" + Copy-Item -Recurse -Force -Path "demo/addons" -Destination "bin/pack/" + Copy-Item -Recurse -Force -Path "bin/android", "bin/ios", "bin/linux", "bin/macos", "bin/web", "bin/windows", "demo/bin/godot-s7-scheme.gdextension" -Destination "bin/pack/bin/" + - name: Upload Artifact uses: actions/upload-artifact@v4 with: