From a4589db6e2888a85e001befa1455431f5fc44f8d Mon Sep 17 00:00:00 2001 From: Xottab_DUTY Date: Wed, 2 Oct 2024 15:47:39 +0300 Subject: [PATCH] GitHub Actions: make unified archive It contains all configurations and architectures --- .github/workflows/build.yml | 41 +++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index def02df..5350bd8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,7 @@ on: workflow_dispatch: jobs: - windows: + build: name: ${{ matrix.configuration }} ${{ matrix.platform }} runs-on: windows-latest strategy: @@ -39,8 +39,45 @@ jobs: with: name: BugTrap ${{ matrix.configuration }} ${{ matrix.platform }} (github-${{ github.run_number }}) path: | - include/* + include bin/*.dll bin/*.lib bin/*.pdb + doc LICENSE + + pack-everything: + name: Pack everything into one archive + needs: build + runs-on: windows-latest + steps: + - name: Download everything from previous jobs + uses: actions/download-artifact@v4 + + - name: Unify folders + shell: cmd + run: | + for /d /r %%D in ("BugTrap*") do ( + echo Moving contents of %%D to the parent directory... + + rem Copy all files and directories recursively + xcopy "%%D\*" "${{ github.workspace }}" /E /I /K /Y + + rem Delete original directory + rd /s /q "%%D" + ) + + - name: Show files we have + run: Get-ChildItem -Recurse + + - name: Upload unified artifact + uses: actions/upload-artifact@main + with: + name: BugTrap (github-${{ github.run_number }}) + path: "*" + + # XXX: to be uploaded as a release, not artifact + #- name: Pack shipping archive + # run: | + # 7z a BugTrap.zip * -xr!*.pdb + # 7z a "BugTrap Symbols.zip" bin\*.pdb