diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6e4bfce..fc63c91 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -239,14 +239,13 @@ jobs: SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_ORG: ${{ secrets.SENTRY_ORG }} SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} - PATH: "D:/a/QtMeshEditor/Qt/Tools/mingw1310_64/bin;D:/a/QtMeshEditor/Qt/Tools/CMake_64/bin;${{ env.PATH }}" run: | - Copy-Item "${{github.workspace}}/bin/QtMeshEditor.exe" "${{github.workspace}}/bin/QtMeshEditor.debug.exe" - strip.exe --strip-debug "${{github.workspace}}/bin/QtMeshEditor.exe" - npm install -g @sentry/cli + cp "${{github.workspace}}/bin/QtMeshEditor.exe" "${{github.workspace}}/bin/QtMeshEditor.debug.exe" + "D:/a/QtMeshEditor/Qt/Tools/mingw1310_64/bin/strip.exe" --strip-debug "${{github.workspace}}/bin/QtMeshEditor.exe" + curl -sL https://sentry.io/get-cli/ | bash sentry-cli debug-files upload --include-sources "${{github.workspace}}/bin/QtMeshEditor.debug.exe" - Remove-Item "${{github.workspace}}/bin/QtMeshEditor.debug.exe" - shell: powershell + rm -f "${{github.workspace}}/bin/QtMeshEditor.debug.exe" + shell: bash - name: Copy assimp dll to the binary folder run: | @@ -506,12 +505,12 @@ jobs: SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} run: | # Extract debug symbols, strip binary, upload to Sentry - objcopy --only-keep-debug ./bin/QtMeshEditor ./bin/QtMeshEditor.debug - strip --strip-debug --strip-unneeded ./bin/QtMeshEditor - objcopy --add-gnu-debuglink=./bin/QtMeshEditor.debug ./bin/QtMeshEditor + sudo objcopy --only-keep-debug ./bin/QtMeshEditor ./bin/QtMeshEditor.debug + sudo strip --strip-debug --strip-unneeded ./bin/QtMeshEditor + sudo objcopy --add-gnu-debuglink=./bin/QtMeshEditor.debug ./bin/QtMeshEditor curl -sL https://sentry.io/get-cli/ | bash sentry-cli debug-files upload --include-sources ./bin/QtMeshEditor.debug - rm -f ./bin/QtMeshEditor.debug + sudo rm -f ./bin/QtMeshEditor.debug - name: Add missing libraries run: | @@ -1204,8 +1203,8 @@ jobs: SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} run: | BIN_PATH="${{github.workspace}}/bin/QtMeshEditor.app/Contents/MacOS/QtMeshEditor" - dsymutil "$BIN_PATH" -o "${{github.workspace}}/bin/QtMeshEditor.dSYM" - strip "$BIN_PATH" + sudo dsymutil "$BIN_PATH" -o "${{github.workspace}}/bin/QtMeshEditor.dSYM" + sudo strip "$BIN_PATH" curl -sL https://sentry.io/get-cli/ | bash sentry-cli debug-files upload --include-sources "${{github.workspace}}/bin/QtMeshEditor.dSYM"