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 f91f78a
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion .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 @@ -44,3 +44,39 @@ jobs:
bin/*.lib
bin/*.pdb
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\*" "%rootDir%\" /E /I /K /Y
rem Delete original directory
rd /s /q "%%D"
)
- name: Upload unified artifact
uses: actions/upload-artifact@main
with:
name: BugTrap (github-${{ github.run_number }})
path: "*"

- name: Pack shipping archive
run: 7z a BugTrap.zip *

- name: Upload manually packed shipping artifact
uses: actions/upload-artifact@main
with:
name: BugTrap
path: BugTrap.zip

0 comments on commit f91f78a

Please sign in to comment.