Skip to content

Commit e78dbd8

Browse files
committed
Try to cache CMake output
I am not very confident that building with the cache will work, even more if we modify the CMakeLists.txt file between builds. But waiting >20min per build is very painful (and there are both Debug and Release builds).
1 parent a71fc01 commit e78dbd8

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,17 @@ jobs:
5858
- name: Setup Gradle
5959
uses: gradle/actions/setup-gradle@v3
6060

61+
- name: CMake Cache
62+
uses: actions/cache@v4
63+
id: cmake-cache
64+
with:
65+
path: |
66+
library/.cxx/*
67+
key: cmake-cache
68+
69+
- name: Build Library
70+
run: ./gradlew :library:assemble
71+
6172
- name: Enable KVM group perms
6273
run: |
6374
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
@@ -92,7 +103,9 @@ jobs:
92103
api-level: 29
93104
ndk: 26.3.11579264
94105
cmake: 3.31.1
95-
script: ./gradlew connectedCheck -P andoidtestInstrumentationRunnerArguments.androidx.benchmark.dryRunMode=true
106+
script: |
107+
./gradlew :library:connectedAndroidTest
108+
./gradlew connectedCheck -P andoidtestInstrumentationRunnerArguments.androidx.benchmark.dryRunMode=true
96109
97110
98111
# Archive the generated AAR file

0 commit comments

Comments
 (0)