Skip to content

Commit f3cfd67

Browse files
authored
[Android] Ensure that build_and_compare_apk for Cargo.toml updates (#358)
1 parent fd67d21 commit f3cfd67

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/android.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,27 @@ jobs:
4444
run: ./ci/files_changed.sh "^platform/jvm/gradle-test-app/.*\.(gradle|kts|kt|xml)$"
4545
continue-on-error: true
4646

47+
- name: Check for Cargo.toml changes
48+
id: cargo_check
49+
run: ./ci/files_changed.sh "Cargo.toml"
50+
continue-on-error: true
51+
4752
- name: Determine if tests should run
4853
id: check_changes_separate
4954
run: |
5055
bazel_status="${{ steps.bazel_check.outputs.check_result }}"
5156
workflow_status="${{ steps.workflow_check.outputs.check_result }}"
5257
gradle_status="${{ steps.gradle_check.outputs.check_result }}"
58+
cargo_status="${{ steps.cargo_check.outputs.check_result }}"
5359
5460
# Check if any status indicates a relevant change or error
55-
if [[ "$bazel_status" == "1" || "$workflow_status" == "1" || "$gradle_status" == "1" ]]; then
61+
if [[ "$bazel_status" == "1" || "$workflow_status" == "1" || "$gradle_status" == "1" || "$cargo_status" == "1" ]]; then
5662
echo "An unexpected issue occurred during checks."
5763
exit 1
58-
elif [[ "$bazel_status" == "0" || "$workflow_status" == "0" || "$gradle_status" == "0" ]]; then
64+
elif [[ "$bazel_status" == "0" || "$workflow_status" == "0" || "$gradle_status" == "0" || "$cargo_status" == "0" ]]; then
5965
echo "Changes detected in one or more checks. Running tests."
6066
echo "run_tests=true" >> $GITHUB_ENV
61-
elif [[ "$bazel_status" == "2" && "$workflow_status" == "2" && "$gradle_status" == "2" ]]; then
67+
elif [[ "$bazel_status" == "2" && "$workflow_status" == "2" && "$gradle_status" == "2" && "$cargo_status" == "2" ]]; then
6268
echo "No relevant changes found."
6369
echo "run_tests=false" >> $GITHUB_ENV
6470
else

0 commit comments

Comments
 (0)