Skip to content

Commit dcd2037

Browse files
ci: Move Gradle-only jobs to Bitrise tahoe runners (#6257)
Co-Authored-By: Nelson Osacky <nelson.osacky@sentry.io> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
1 parent 01bdfb9 commit dcd2037

7 files changed

Lines changed: 15 additions & 12 deletions

‎.github/workflows/codeql-analysis.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313
jobs:
1414
analyze:
1515
name: Analyze
16-
runs-on: macos-15
16+
runs-on: ["bitrise_pool_name:tahoe"]
1717

1818
env:
1919
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}

‎.github/workflows/format-code.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
jobs:
66
format-code:
77
name: Format Code
8-
runs-on: ubuntu-latest
8+
runs-on: ["bitrise_pool_name:tahoe"]
99
steps:
1010
- name: Checkout
1111
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

‎.github/workflows/generate-javadocs.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
build-and-deploy-javadocs:
88
name: Build and deploy Javadocs
9-
runs-on: ubuntu-latest
9+
runs-on: ["bitrise_pool_name:tahoe"]
1010
steps:
1111
- name: Checkout 🛎️
1212
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

‎.github/workflows/integration-tests-macrobenchmark.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212
jobs:
1313
macrobenchmark:
1414
name: Macrobenchmark
15-
runs-on: ubuntu-latest
15+
runs-on: ["bitrise_pool_name:tahoe"]
1616

1717
# we copy the secret to the env variable in order to access it in the workflow
1818
env:

‎.github/workflows/integration-tests-size.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313
jobs:
1414
build:
1515
name: Build and Analyze SDK Size
16-
runs-on: ubuntu-latest
16+
runs-on: ["bitrise_pool_name:tahoe"]
1717

1818
env:
1919
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}

‎.github/workflows/integration-tests-ui-critical.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ env:
2020
jobs:
2121
build:
2222
name: Build
23-
runs-on: ubuntu-latest
23+
# Only the APK build runs on Bitrise; the Maestro job below needs KVM for the
24+
# x86_64 emulator, which the macOS Bitrise VMs don't provide.
25+
runs-on: ["bitrise_pool_name:tahoe"]
2426

2527
env:
2628
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}

‎.github/workflows/integration-tests-ui.yml‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212
jobs:
1313
test:
1414
name: Ui tests
15-
runs-on: ubuntu-latest
15+
runs-on: ["bitrise_pool_name:tahoe"]
1616

1717
# we copy the secret to the env variable in order to access it in the workflow
1818
env:
@@ -81,11 +81,12 @@ jobs:
8181
# Skip on PRs from forks, which don't have access to the upload secret
8282
if: ${{ !cancelled() && env.SAUCE_USERNAME != null && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
8383
run: |
84-
shopt -s globstar nullglob
85-
pngs=(artifacts/**/*.png)
86-
if [ ${#pngs[@]} -gt 0 ]; then
87-
mkdir -p replay-snapshots
88-
cp "${pngs[@]}" replay-snapshots/
84+
# find instead of `shopt -s globstar`, which macOS's bash 3.2 doesn't support
85+
mkdir -p replay-snapshots
86+
if [ -d artifacts ]; then
87+
find artifacts -type f -name '*.png' -exec cp {} replay-snapshots/ \;
88+
fi
89+
if [ -n "$(ls -A replay-snapshots)" ]; then
8990
sentry-cli snapshots upload ./replay-snapshots \
9091
--app-id sentry-android-replay
9192
else

0 commit comments

Comments
 (0)