Skip to content

Commit 84fb3e2

Browse files
committed
chore: try out blacksmith
1 parent 19c788d commit 84fb3e2

7 files changed

+21
-239
lines changed

.github/workflows/build-deploy-android-firebase-2-cores.yml renamed to .github/workflows/build-deploy-android-firebase-blacksmith-2-cores.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Deploy Android to Firebase Github Paid 2 cores
1+
name: Build and Deploy Android to Firebase Blacksmith Paid 2 cores
22

33
on:
44
push:
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
build-deploy-android-firebase:
13-
runs-on: ubuntu-android
13+
runs-on: blacksmith-2vcpu-ubuntu-2404
1414
timeout-minutes: 90
1515

1616
steps:

.github/workflows/build-deploy-android-firebase-8-cores.yml renamed to .github/workflows/build-deploy-android-firebase-blacksmith-4-cores.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Deploy Android to Firebase
1+
name: Build and Deploy Android to Firebase Blacksmith Paid 4 cores
22

33
on:
44
push:
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
build-deploy-android-firebase:
13-
runs-on: ubuntu-android-8-cores
13+
runs-on: blacksmith-4vcpu-ubuntu-2404
1414
timeout-minutes: 90
1515

1616
steps:

.github/workflows/build-deploy-android-firebase.yml renamed to .github/workflows/build-deploy-android-firebase-blacksmith-8-cores.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Deploy Android to Firebase Free Github
1+
name: Build and Deploy Android to Firebase Blacksmith Paid 8 cores
22

33
on:
44
push:
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
build-deploy-android-firebase:
13-
runs-on: ubuntu-latest
13+
runs-on: blacksmith-8vcpu-ubuntu-2404
1414
timeout-minutes: 90
1515

1616
steps:

.github/workflows/build-deploy-android-firebase-runs-on-2-cores.yml

Lines changed: 0 additions & 73 deletions
This file was deleted.

.github/workflows/build-deploy-android-firebase-runs-on-8-cores.yml

Lines changed: 0 additions & 73 deletions
This file was deleted.

.github/workflows/build-deploy-android-playstore.yml

Lines changed: 0 additions & 73 deletions
This file was deleted.

scripts/deploys/check_build_status_gh

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fi
1717
if [ "$PLATFORM" = "ios" ]; then
1818
WORKFLOW_NAMES=("Build and Deploy iOS to TestFligh" "Build and Deploy iOS to Firebase")
1919
elif [ "$PLATFORM" = "android" ]; then
20-
WORKFLOW_NAMES=("Build and Deploy Android to Play Store" "Build and Deploy Android to Firebase")
20+
WORKFLOW_NAMES=("Build and Deploy Android to Firebase Blacksmith Paid 2 cores" "Build and Deploy Android to Firebase Blacksmith Paid 4 cores" "Build and Deploy Android to Firebase Blacksmith Paid 8 cores")
2121
else
2222
echo "Unsupported platform: $PLATFORM. Supported platforms are ios and android."
2323
exit 1
@@ -38,29 +38,30 @@ total_running_runs=0
3838
for WORKFLOW_NAME in "${WORKFLOW_NAMES[@]}"; do
3939
echo "Checking workflow: $WORKFLOW_NAME"
4040

41-
# Get the workflow ID first
42-
workflow_id=$(curl -s \
41+
# Get the workflow ID(s) — multiple workflows can share the same name (e.g. stale renamed workflows)
42+
workflow_ids=$(curl -s \
4343
-H "Authorization: Bearer $GITHUB_TOKEN" \
4444
-H "Accept: application/vnd.github.v3+json" \
4545
"https://api.github.com/repos/artsy/eigen/actions/workflows" \
4646
| jq -r --arg name "$WORKFLOW_NAME" '.workflows[] | select(.name == $name) | .id')
4747

48-
if [ -z "$workflow_id" ] || [ "$workflow_id" = "null" ]; then
48+
if [ -z "$workflow_ids" ] || [ "$workflow_ids" = "null" ]; then
4949
echo "Warning: Could not find workflow '$WORKFLOW_NAME'"
5050
continue
5151
fi
5252

53-
# Check for running workflow runs
54-
running_runs=$(curl -s \
55-
-H "Authorization: Bearer $GITHUB_TOKEN" \
56-
-H "Accept: application/vnd.github.v3+json" \
57-
"https://api.github.com/repos/artsy/eigen/actions/workflows/$workflow_id/runs?status=in_progress&per_page=1" \
58-
| jq -r '.total_count')
53+
while IFS= read -r workflow_id; do
54+
running_runs=$(curl -s \
55+
-H "Authorization: Bearer $GITHUB_TOKEN" \
56+
-H "Accept: application/vnd.github.v3+json" \
57+
"https://api.github.com/repos/artsy/eigen/actions/workflows/$workflow_id/runs?status=in_progress&per_page=1" \
58+
| jq -r '.total_count')
5959

60-
if [ "$running_runs" -gt 0 ]; then
61-
echo "Found $running_runs running build(s) for '$WORKFLOW_NAME'"
62-
total_running_runs=$((total_running_runs + running_runs))
63-
fi
60+
if [ "$running_runs" -gt 0 ]; then
61+
echo "Found $running_runs running build(s) for '$WORKFLOW_NAME' (workflow $workflow_id)"
62+
total_running_runs=$((total_running_runs + running_runs))
63+
fi
64+
done <<< "$workflow_ids"
6465
done
6566

6667
if [ "$total_running_runs" -gt 0 ]; then

0 commit comments

Comments
 (0)