From 5e81e51d6f42ebe545ef0d0dc21cef2e6c2ca061 Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Wed, 18 Dec 2024 00:20:59 +0000 Subject: [PATCH] Upload symbols to symbol server if inputs.package is enabled At the moment, we're not sending the regular artifacts to the artifacts bucket, but we might want to change that. We're also not putting the symbols on the symbol server for non-packaged builds, and might want to change that, too. The reason I didn't is that we don't have users running around using the GitHub Actions builds as dev builds. --- .github/workflows/windows.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index c82b5871dc..6f9baebdf6 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -192,6 +192,15 @@ jobs: 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}