diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e31db87a4e..d25122d59a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,7 +13,7 @@ concurrency: jobs: analyze: name: Analyze - runs-on: macos-15 + runs-on: ["bitrise_pool_name:tahoe"] env: GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }} diff --git a/.github/workflows/format-code.yml b/.github/workflows/format-code.yml index d236a64b0c..ed0fa2539a 100644 --- a/.github/workflows/format-code.yml +++ b/.github/workflows/format-code.yml @@ -5,7 +5,7 @@ on: jobs: format-code: name: Format Code - runs-on: ubuntu-latest + runs-on: ["bitrise_pool_name:tahoe"] steps: - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 diff --git a/.github/workflows/generate-javadocs.yml b/.github/workflows/generate-javadocs.yml index 7cb5c903ca..4bc252f7a3 100644 --- a/.github/workflows/generate-javadocs.yml +++ b/.github/workflows/generate-javadocs.yml @@ -6,7 +6,7 @@ on: jobs: build-and-deploy-javadocs: name: Build and deploy Javadocs - runs-on: ubuntu-latest + runs-on: ["bitrise_pool_name:tahoe"] steps: - name: Checkout 🛎️ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 diff --git a/.github/workflows/integration-tests-macrobenchmark.yml b/.github/workflows/integration-tests-macrobenchmark.yml index 377db931fc..7ba03815fc 100644 --- a/.github/workflows/integration-tests-macrobenchmark.yml +++ b/.github/workflows/integration-tests-macrobenchmark.yml @@ -12,7 +12,7 @@ concurrency: jobs: macrobenchmark: name: Macrobenchmark - runs-on: ubuntu-latest + runs-on: ["bitrise_pool_name:tahoe"] # we copy the secret to the env variable in order to access it in the workflow env: diff --git a/.github/workflows/integration-tests-size.yml b/.github/workflows/integration-tests-size.yml index ebdad2a4d9..530f5ea471 100644 --- a/.github/workflows/integration-tests-size.yml +++ b/.github/workflows/integration-tests-size.yml @@ -13,7 +13,7 @@ concurrency: jobs: build: name: Build and Analyze SDK Size - runs-on: ubuntu-latest + runs-on: ["bitrise_pool_name:tahoe"] env: GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }} diff --git a/.github/workflows/integration-tests-ui-critical.yml b/.github/workflows/integration-tests-ui-critical.yml index 27ecbff7d1..c793151d3d 100644 --- a/.github/workflows/integration-tests-ui-critical.yml +++ b/.github/workflows/integration-tests-ui-critical.yml @@ -20,7 +20,9 @@ env: jobs: build: name: Build - runs-on: ubuntu-latest + # Only the APK build runs on Bitrise; the Maestro job below needs KVM for the + # x86_64 emulator, which the macOS Bitrise VMs don't provide. + runs-on: ["bitrise_pool_name:tahoe"] env: GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }} diff --git a/.github/workflows/integration-tests-ui.yml b/.github/workflows/integration-tests-ui.yml index e1f11ac1f8..2483394aa1 100644 --- a/.github/workflows/integration-tests-ui.yml +++ b/.github/workflows/integration-tests-ui.yml @@ -12,7 +12,7 @@ concurrency: jobs: test: name: Ui tests - runs-on: ubuntu-latest + runs-on: ["bitrise_pool_name:tahoe"] # we copy the secret to the env variable in order to access it in the workflow env: @@ -81,11 +81,12 @@ jobs: # Skip on PRs from forks, which don't have access to the upload secret if: ${{ !cancelled() && env.SAUCE_USERNAME != null && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }} run: | - shopt -s globstar nullglob - pngs=(artifacts/**/*.png) - if [ ${#pngs[@]} -gt 0 ]; then - mkdir -p replay-snapshots - cp "${pngs[@]}" replay-snapshots/ + # find instead of `shopt -s globstar`, which macOS's bash 3.2 doesn't support + mkdir -p replay-snapshots + if [ -d artifacts ]; then + find artifacts -type f -name '*.png' -exec cp {} replay-snapshots/ \; + fi + if [ -n "$(ls -A replay-snapshots)" ]; then sentry-cli snapshots upload ./replay-snapshots \ --app-id sentry-android-replay else