Skip to content

Commit 82a8e63

Browse files
committed
Merge branch 'store-symbols-github-actions' into 'master'
Upload symbols to symbol server for GitHub Actions package builds See merge request OpenMW/openmw!4482
2 parents 56a1580 + 9684508 commit 82a8e63

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ jobs:
2424
vcpkg-deps-tag: ${{ needs.Output-Envs.outputs.VCPKG_DEPS_TAG }}
2525
build-type: Release
2626
package: true
27+
secrets: inherit

.github/workflows/windows.yml

+22
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ jobs:
134134
mkdir ${{ github.workspace }}/build/iconengines
135135
cp plugins/iconengines/qsvgicon.dll ${{ github.workspace }}/build/iconengines
136136
137+
- name: Create symbol server directory structure
138+
working-directory: ${{ github.workspace }}/build
139+
run: |
140+
${{ github.workspace }}\CI\Store-Symbols.ps1
141+
Move-Item ${{ github.workspace }}\build\SymStore ${{ github.workspace }}
142+
137143
- name: Move pdb files
138144
run: |
139145
robocopy build pdb *.pdb /MOVE
@@ -166,6 +172,7 @@ jobs:
166172
job_url=$(gh run --repo ${{ github.repository }} view ${{ github.run_id }} --json jobs --jq '.jobs[] | select(.name == "windows-${{ inputs.image }}") | .url')
167173
printf "Ref ${{ github.ref }}\nJob ${job_url}\nCommit ${{ github.sha }}\n" > install/CI-ID.txt
168174
cp install/CI-ID.txt pdb/CI-ID.txt
175+
cp install/CI-ID.txt SymStore/CI-ID.txt
169176
170177
- name: Store OpenMW archived pdb files
171178
uses: actions/upload-artifact@v4
@@ -179,6 +186,21 @@ jobs:
179186
name: openmw-windows-${{ inputs.image }}-${{ github.sha }}
180187
path: ${{ github.workspace }}/install/*
181188

189+
- name: Store symbol server artifacts
190+
uses: actions/upload-artifact@v4
191+
with:
192+
name: openmw-windows-${{ inputs.image }}-sym-store-${{ github.sha }}
193+
path: ${{ github.workspace }}/SymStore/*
194+
195+
- name: Upload to symbol server
196+
env:
197+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
198+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
199+
AWS_DEFAULT_REGION: eu-west-3
200+
if: ${{ env.AWS_ACCESS_KEY_ID != '' && env.AWS_SECRET_ACCESS_KEY != '' && inputs.package }}
201+
working-directory: ${{ github.workspace }}/SymStore
202+
run: aws --endpoint-url https://rgw.ctrl-c.liu.se s3 sync --size-only --exclude * --include *.ex_ --include *.dl_ --include *.pd_ . s3://openmw-sym
203+
182204
- name: Add install directory to PATH
183205
shell: bash
184206
run: echo '${{ github.workspace }}/install' >> ${GITHUB_PATH}

0 commit comments

Comments
 (0)