-
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6f73d9
commit f3a6fb7
Showing
20 changed files
with
525 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,8 @@ jobs: | |
- name: Gradle | ||
working-directory: shell/android-studio | ||
run: ./gradlew assembleRelease --parallel | ||
env: | ||
SENTRY_UPLOAD_URL: ${{ secrets.SENTRY_UPLOAD_URL }} | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
|
@@ -71,6 +73,24 @@ jobs: | |
run: aws s3 sync shell/android-studio/flycast/build/outputs/apk/release s3://flycast-builds/android/${GITHUB_REF#refs/}-$GITHUB_SHA --acl public-read --exclude='*.json' --follow-symlinks | ||
if: ${{ steps.aws-credentials.outputs.aws-account-id != '' }} | ||
|
||
- name: Upload to S3 (symbols) | ||
run: aws s3 sync symbols s3://flycast-symbols/android --follow-symlinks | ||
if: ${{ steps.aws-credentials.outputs.aws-account-id != '' }} | ||
- name: Setup Sentry CLI | ||
uses: mathieu-bour/[email protected] | ||
env: | ||
SENTRY_TOKEN: ${{ secrets.SENTRY_TOKEN }} | ||
with: | ||
url: https://sentry.io | ||
token: ${{ env.SENTRY_TOKEN }} | ||
organization: flycast | ||
project: minidump | ||
if: ${{ env.SENTRY_TOKEN != '' }} | ||
|
||
- name: Upload symbols to Sentry | ||
run: | | ||
VERSION=$(git describe --tags --always) | ||
sentry-cli releases new "$VERSION" | ||
sentry-cli releases set-commits "$VERSION" --auto | ||
sentry-cli upload-dif symbols | ||
shell: bash | ||
env: | ||
SENTRY_TOKEN: ${{ secrets.SENTRY_TOKEN }} | ||
if: ${{ env.SENTRY_TOKEN != '' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,8 +84,10 @@ jobs: | |
|
||
- name: CMake | ||
run: | | ||
cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.config.buildType }} -DCMAKE_INSTALL_PREFIX=artifact ${{ matrix.config.cmakeArgs }} | ||
cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.config.buildType }} -DCMAKE_INSTALL_PREFIX=artifact ${{ matrix.config.cmakeArgs }} -DSENTRY_UPLOAD_URL=${{ env.SENTRY_UPLOAD_URL }} | ||
cmake --build build --config ${{ matrix.config.buildType }} --target install | ||
env: | ||
SENTRY_UPLOAD_URL: ${{ secrets.SENTRY_UPLOAD_URL }} | ||
|
||
- name: Unit Tests | ||
run: | | ||
|
@@ -96,10 +98,8 @@ jobs: | |
|
||
- name: Dump symbols | ||
run: | | ||
core/deps/breakpad/bin/dump_syms artifact/bin/flycast.exe > flycast.exe.sym 2>/dev/null | ||
BUILD_ID=`head -1 flycast.exe.sym | awk '{ print $4 }'` | ||
mkdir -p symbols/flycast.exe/$BUILD_ID | ||
mv flycast.exe.sym symbols/flycast.exe/$BUILD_ID | ||
mkdir -p symbols | ||
core/deps/breakpad/bin/dump_syms artifact/bin/flycast.exe > symbols/flycast.sym 2>/dev/null | ||
strip artifact/bin/flycast.exe | ||
if: matrix.config.name == 'x86_64-w64-mingw32' | ||
|
||
|
@@ -134,7 +134,25 @@ jobs: | |
shell: bash | ||
if: ${{ steps.aws-credentials.outputs.aws-account-id != '' }} | ||
|
||
- name: Upload symbols to S3 (Windows-MinGW, macOS) | ||
run: aws s3 sync symbols s3://flycast-symbols/${{ matrix.config.destDir }} --follow-symlinks | ||
- name: Setup Sentry CLI | ||
uses: mathieu-bour/[email protected] | ||
env: | ||
SENTRY_TOKEN: ${{ secrets.SENTRY_TOKEN }} | ||
with: | ||
url: https://sentry.io | ||
token: ${{ env.SENTRY_TOKEN }} | ||
organization: flycast | ||
project: minidump | ||
if: ${{ env.SENTRY_TOKEN != '' }} | ||
|
||
- name: Upload symbols to Sentry (Windows, macOS) | ||
run: | | ||
VERSION=$(git describe --tags --always) | ||
sentry-cli releases new "$VERSION" | ||
sentry-cli releases set-commits "$VERSION" --auto | ||
sentry-cli upload-dif symbols | ||
shell: bash | ||
if: ${{ steps.aws-credentials.outputs.aws-account-id != '' && (matrix.config.name == 'x86_64-w64-mingw32' || matrix.config.name == 'apple-darwin') }} | ||
env: | ||
SENTRY_TOKEN: ${{ secrets.SENTRY_TOKEN }} | ||
if: ${{ env.SENTRY_TOKEN != '' && (matrix.config.name == 'x86_64-w64-mingw32' || matrix.config.name == 'apple-darwin') }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.