Skip to content

Commit ea3f644

Browse files
authored
Replace Kokoro ARM build with GitHub Actions
The Kokoro aarch64 build runs on x86 with an emulator, and has always been flaky due to the slow execution speed. At present it is continually failing due to deadline exceededs. GitHub Actions is running on aarch64 hardware, so is much faster (4 minutes vs 30 minutes, without including the speedup from GitHub Action's caching).
1 parent 4a10a38 commit ea3f644

File tree

5 files changed

+41
-103
lines changed

5 files changed

+41
-103
lines changed

.github/workflows/branch-testing.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: GitHub Actions Branch Testing
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 'v1.*'
8+
schedule:
9+
- cron: '54 19 * * SUN' # weekly at a "random" time
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
arm64:
16+
runs-on: ubuntu-24.04-arm
17+
strategy:
18+
matrix:
19+
jre: [17]
20+
fail-fast: false # Should swap to true if we grow a large matrix
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: actions/setup-java@v4
25+
with:
26+
java-version: ${{ matrix.jre }}
27+
distribution: 'temurin'
28+
29+
- name: Gradle cache
30+
uses: actions/cache@v4
31+
with:
32+
path: |
33+
~/.gradle/caches
34+
~/.gradle/wrapper
35+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
36+
restore-keys: |
37+
${{ runner.os }}-gradle-
38+
39+
- name: Build
40+
run: ./gradlew -Dorg.gradle.parallel=true -Dorg.gradle.jvmargs='-Xmx1g' -PskipAndroid=true -PskipCodegen=true -PerrorProne=false test
41+

buildscripts/kokoro/linux_aarch64.cfg

-13
This file was deleted.

buildscripts/kokoro/linux_aarch64.sh

-17
This file was deleted.

buildscripts/qemu_helpers/prepare_qemu.sh

-26
This file was deleted.

buildscripts/run_arm64_tests_in_docker.sh

-47
This file was deleted.

0 commit comments

Comments
 (0)