Skip to content

Commit

Permalink
Merge branch 'store-symbols-github-actions' into 'master'
Browse files Browse the repository at this point in the history
Upload symbols to symbol server for GitHub Actions package builds

See merge request OpenMW/openmw!4482
  • Loading branch information
psi29a committed Dec 19, 2024
2 parents 56a1580 + 9684508 commit 82a8e63
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ jobs:
vcpkg-deps-tag: ${{ needs.Output-Envs.outputs.VCPKG_DEPS_TAG }}
build-type: Release
package: true
secrets: inherit
22 changes: 22 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ jobs:
mkdir ${{ github.workspace }}/build/iconengines
cp plugins/iconengines/qsvgicon.dll ${{ github.workspace }}/build/iconengines
- name: Create symbol server directory structure
working-directory: ${{ github.workspace }}/build
run: |
${{ github.workspace }}\CI\Store-Symbols.ps1
Move-Item ${{ github.workspace }}\build\SymStore ${{ github.workspace }}
- name: Move pdb files
run: |
robocopy build pdb *.pdb /MOVE
Expand Down Expand Up @@ -166,6 +172,7 @@ jobs:
job_url=$(gh run --repo ${{ github.repository }} view ${{ github.run_id }} --json jobs --jq '.jobs[] | select(.name == "windows-${{ inputs.image }}") | .url')
printf "Ref ${{ github.ref }}\nJob ${job_url}\nCommit ${{ github.sha }}\n" > install/CI-ID.txt
cp install/CI-ID.txt pdb/CI-ID.txt
cp install/CI-ID.txt SymStore/CI-ID.txt
- name: Store OpenMW archived pdb files
uses: actions/upload-artifact@v4
Expand All @@ -179,6 +186,21 @@ jobs:
name: openmw-windows-${{ inputs.image }}-${{ github.sha }}
path: ${{ github.workspace }}/install/*

- name: Store symbol server artifacts
uses: actions/upload-artifact@v4
with:
name: openmw-windows-${{ inputs.image }}-sym-store-${{ github.sha }}
path: ${{ github.workspace }}/SymStore/*

- name: Upload to symbol server
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: eu-west-3
if: ${{ env.AWS_ACCESS_KEY_ID != '' && env.AWS_SECRET_ACCESS_KEY != '' && inputs.package }}
working-directory: ${{ github.workspace }}/SymStore
run: aws --endpoint-url https://rgw.ctrl-c.liu.se s3 sync --size-only --exclude * --include *.ex_ --include *.dl_ --include *.pd_ . s3://openmw-sym

- name: Add install directory to PATH
shell: bash
run: echo '${{ github.workspace }}/install' >> ${GITHUB_PATH}
Expand Down

0 comments on commit 82a8e63

Please sign in to comment.