Skip to content

Commit

Permalink
upload pdb files as an artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Dec 23, 2024
1 parent 11dccb3 commit fcfb677
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ on:
launchdf:
type: boolean
default: false
save-pdb:
type: boolean
default: false


jobs:
Expand Down Expand Up @@ -145,3 +148,9 @@ jobs:
with:
name: ${{ steps.artifactname.outputs.name }}
path: ${{ steps.artifactname.outputs.name }}.tar.bz2
- name: Upload PDBs
if: inputs.artifact-name && inputs.save-pdb
uses: actions/upload-artifact@v4
with:
name: ${{ steps.artifactname.outputs.name }}_pdb
path: build/win64-cross/pdb
1 change: 1 addition & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
docs: true
html: false
launchdf: ${{ inputs.launchdf }}
save-pdb: true
secrets: inherit

package-linux:
Expand Down
2 changes: 1 addition & 1 deletion build/build-win64-from-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if ! docker run --rm -i -v "$srcdir":/src -v "$srcdir/build/win64-cross/":/src/b
-e steam_password \
--name dfhack-win \
ghcr.io/dfhack/build-env:master \
bash -c "cd /src/build && dfhack-configure windows 64 Release -DCMAKE_INSTALL_PREFIX=/src/build/output -DBUILD_DOCS=1 $CMAKE_EXTRA_ARGS && dfhack-make -j$jobs install && echo 'finding pdb files' && find . && find . -iname '*.pdb' -exec cp --parents '{}' win64-cross/pdb/ \; && echo 'all done'" \
bash -c "cd /src/build && dfhack-configure windows 64 Release -DCMAKE_INSTALL_PREFIX=/src/build/output -DBUILD_DOCS=1 $CMAKE_EXTRA_ARGS && dfhack-make -j$jobs install && find . -iname '*.pdb' -exec cp --parents '{}' pdb/ \;" \
; then
echo
echo "Build failed"
Expand Down

0 comments on commit fcfb677

Please sign in to comment.