Ryan Brink
05/22/2023, 2:29 PMRyan Brink
05/22/2023, 2:30 PMhfhbd
05/22/2023, 2:45 PMRyan Brink
05/22/2023, 3:02 PMRyan Brink
05/22/2023, 3:04 PMhfhbd
05/22/2023, 3:11 PMPlease wait while Kotlin/Native compiler 1.8.21 is being installed.
Download <https://download.jetbrains.com/kotlin/native/builds/releases/1.8.21/macos-x86_64/kotlin-native-prebuilt-macos-x86_64-1.8.21.tar.gz> (308.22 MB)
Download kotlin-native-prebuilt-macos-x86_64-1.8.21.tar.gz finished, took 24 ms
Unpack Kotlin/Native compiler to /Users/runner/.konan/kotlin-native-prebuilt-macos-x86_64-1.8.21
Unpack Kotlin/Native compiler to /Users/runner/.konan/kotlin-native-prebuilt-macos-x86_64-1.8.21 finished, took 24 s 260 ms
https://github.com/cashapp/sqldelight/actions/runs/5041216230/jobs/9040718326#step:7:30Ryan Brink
05/22/2023, 3:13 PMhfhbd
05/22/2023, 3:13 PMPlease wait while Kotlin/Native compiler 1.8.21 is being installed.
Download <https://download.jetbrains.com/kotlin/native/builds/releases/1.8.21/macos-x86_64/kotlin-native-prebuilt-macos-x86_64-1.8.21.tar.gz> (308.22 MB)
Download kotlin-native-prebuilt-macos-x86_64-1.8.21.tar.gz finished, took 4 s 237 ms
Unpack Kotlin/Native compiler to /Users/runner/.konan/kotlin-native-prebuilt-macos-x86_64-1.8.21
Unpack Kotlin/Native compiler to /Users/runner/.konan/kotlin-native-prebuilt-macos-x86_64-1.8.21 finished, took 21 s 851 ms
Ryan Brink
05/22/2023, 3:14 PMRyan Brink
05/22/2023, 3:15 PMAdam S
05/22/2023, 3:18 PMgradle/gradle-build-action
? Do you have Gradle build cache enabled?Ryan Brink
05/22/2023, 3:18 PMAdam S
05/22/2023, 3:18 PM- name: Cache Kotlin Konan
id: cache-kotlin-konan
uses: actions/cache@v3
with:
path: |
~/.konan/**/*
key: kotlin-konan-${{ runner.os }}
Ryan Brink
05/22/2023, 3:19 PMhfhbd
05/22/2023, 3:19 PMRyan Brink
05/22/2023, 3:20 PMhfhbd
05/22/2023, 3:20 PMAdam S
05/22/2023, 3:21 PMhfhbd
05/22/2023, 3:21 PMRyan Brink
05/22/2023, 3:21 PMAdam S
05/22/2023, 3:23 PMhfhbd
05/22/2023, 3:23 PMRyan Brink
05/22/2023, 3:24 PMRyan Brink
05/22/2023, 3:25 PMAdam S
05/22/2023, 3:26 PMorg.gradle.caching=true
to gradle.properties
- it gives a really big improvementRyan Brink
05/22/2023, 3:27 PMRyan Brink
05/22/2023, 3:27 PMRyan Brink
05/22/2023, 3:28 PMAdam S
05/22/2023, 3:28 PMRyan Brink
05/22/2023, 3:28 PMRyan Brink
05/22/2023, 3:28 PMRyan Brink
05/22/2023, 3:29 PMRyan Brink
05/22/2023, 3:30 PMBy default, the build cache is not enabled. You can enable the build cache in a couple of ways:
Run with --build-cache on the command-line
Gradle will use the build cache for this build only.
Put org.gradle.caching=true in your gradle.properties
Gradle will try to reuse outputs from previous builds for all builds, unless explicitly disabled with --no-build-cache.
When the build cache is enabled, it will store build outputs in the Gradle user home.
https://docs.gradle.org/current/userguide/build_cache.htmlRyan Brink
05/22/2023, 3:30 PMAdam S
05/22/2023, 3:31 PM$HOME/.gradle
dirAdam S
05/22/2023, 3:32 PMRyan Brink
05/22/2023, 3:33 PMAdam S
05/22/2023, 3:35 PM./gradlew check
it would fetch the result from the build cache, see that the inputs haven’t changed, and then conclude that the tests are correct without actually running them.Ryan Brink
05/22/2023, 3:36 PMAdam S
05/22/2023, 3:40 PM