Skip to content

Commit

Permalink
GitHub Actions: make unified archive
Browse files Browse the repository at this point in the history
It contains all configurations and architectures
  • Loading branch information
Xottab-DUTY committed Oct 2, 2024
1 parent 971b52b commit dfab724
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:

jobs:
windows:
build:
name: ${{ matrix.configuration }} ${{ matrix.platform }}
runs-on: windows-latest
strategy:
Expand Down Expand Up @@ -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
README.md
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"
)
- run: ls

- 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

0 comments on commit dfab724

Please sign in to comment.