Skip to content

Commit 3723e86

Browse files
authored
ci: improve the GitHub Actions workflow (#2697)
* set a timeout of 30 minutes - our CI rarely takes more than that. Let's not use quotas unecessarily * use concurrency to cancel previous workflows
1 parent db8290d commit 3723e86

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/android.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
name: Android CI
22

33
on:
4-
- pull_request
5-
- push
4+
pull_request:
5+
push:
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
9+
cancel-in-progress: true
610

711
jobs:
812
build:
913
runs-on: ubuntu-latest
14+
timeout-minutes: 30
1015
steps:
1116
- uses: actions/checkout@v4
1217
- name: Set up JDK 17

0 commit comments

Comments
 (0)