mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-12 17:06:43 +00:00
Merge branch 'store-symbols-github-actions' into 'master'
Upload symbols to symbol server for GitHub Actions package builds See merge request OpenMW/openmw!4482
This commit is contained in:
commit
82a8e63b5b
2 changed files with 23 additions and 0 deletions
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
|
@ -24,3 +24,4 @@ jobs:
|
||||||
vcpkg-deps-tag: ${{ needs.Output-Envs.outputs.VCPKG_DEPS_TAG }}
|
vcpkg-deps-tag: ${{ needs.Output-Envs.outputs.VCPKG_DEPS_TAG }}
|
||||||
build-type: Release
|
build-type: Release
|
||||||
package: true
|
package: true
|
||||||
|
secrets: inherit
|
||||||
|
|
22
.github/workflows/windows.yml
vendored
22
.github/workflows/windows.yml
vendored
|
@ -134,6 +134,12 @@ jobs:
|
||||||
mkdir ${{ github.workspace }}/build/iconengines
|
mkdir ${{ github.workspace }}/build/iconengines
|
||||||
cp plugins/iconengines/qsvgicon.dll ${{ 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
|
- name: Move pdb files
|
||||||
run: |
|
run: |
|
||||||
robocopy build pdb *.pdb /MOVE
|
robocopy build pdb *.pdb /MOVE
|
||||||
|
@ -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')
|
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
|
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 pdb/CI-ID.txt
|
||||||
|
cp install/CI-ID.txt SymStore/CI-ID.txt
|
||||||
|
|
||||||
- name: Store OpenMW archived pdb files
|
- name: Store OpenMW archived pdb files
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
@ -179,6 +186,21 @@ jobs:
|
||||||
name: openmw-windows-${{ inputs.image }}-${{ github.sha }}
|
name: openmw-windows-${{ inputs.image }}-${{ github.sha }}
|
||||||
path: ${{ github.workspace }}/install/*
|
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
|
- name: Add install directory to PATH
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo '${{ github.workspace }}/install' >> ${GITHUB_PATH}
|
run: echo '${{ github.workspace }}/install' >> ${GITHUB_PATH}
|
||||||
|
|
Loading…
Reference in a new issue