File tree Expand file tree Collapse file tree 5 files changed +14
-2
lines changed
plugins/build-plugin/src/main/kotlin/com/powersync/compile Expand file tree Collapse file tree 5 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 49
49
- name : Gradle publish
50
50
run : |
51
51
./gradlew \
52
+ --no-configuration-cache \
52
53
-PGITHUB_PUBLISH_TOKEN="${{ secrets.GITHUB_TOKEN }}" \
53
54
-PsigningInMemoryKey="${{ secrets.SIGNING_KEY }}" \
54
55
-PsigningInMemoryKeyId="${{ secrets.SIGNING_KEY_ID }}" \
77
78
distribution : ' temurin'
78
79
- name : Set up Gradle
79
80
uses : gradle/actions/setup-gradle@v4
81
+ with :
82
+ cache-encryption-key : ${{ secrets.GRADLE_ENCRYPTION_KEY }}
80
83
- name : Build frameworks
81
84
run : " ./gradlew PowerSyncKotlin:buildRelease"
82
85
Original file line number Diff line number Diff line change 30
30
- name : Build Docs
31
31
run : |
32
32
./gradlew \
33
+ --no-configuration-cache \
33
34
-PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} \
34
35
dokkaGenerate
35
36
shell : bash
Original file line number Diff line number Diff line change @@ -38,11 +38,12 @@ jobs:
38
38
distribution : ' temurin'
39
39
- name : Set up Gradle
40
40
uses : gradle/actions/setup-gradle@v4
41
+ with :
42
+ cache-encryption-key : ${{ secrets.GRADLE_ENCRYPTION_KEY }}
41
43
42
44
- name : Build and run tests with Gradle
43
45
run : |
44
46
./gradlew \
45
- -PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} \
46
47
${{ matrix.targets }}
47
48
shell : bash
48
49
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ kotlin.code.style=official
2
2
# Gradle
3
3
org.gradle.jvmargs =-Xmx2048M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx2048M"
4
4
org.gradle.caching =true
5
+ org.gradle.configuration-cache =true
5
6
# Compose
6
7
org.jetbrains.compose.experimental.uikit.enabled =true
7
8
# Android
Original file line number Diff line number Diff line change 1
1
package com.powersync.compile
2
2
3
3
import org.gradle.api.DefaultTask
4
+ import org.gradle.api.file.ProjectLayout
4
5
import org.gradle.api.file.RegularFileProperty
5
6
import org.gradle.api.tasks.InputFile
7
+ import org.gradle.api.tasks.Internal
6
8
import org.gradle.api.tasks.OutputFile
7
9
import org.gradle.api.tasks.TaskAction
8
10
import org.gradle.work.DisableCachingByDefault
11
+ import javax.inject.Inject
9
12
10
13
@DisableCachingByDefault(because = " not worth caching" )
11
14
abstract class CreateSqliteCInterop : DefaultTask () {
@@ -15,6 +18,9 @@ abstract class CreateSqliteCInterop: DefaultTask() {
15
18
@get:OutputFile
16
19
abstract val definitionFile: RegularFileProperty
17
20
21
+ @get:Inject
22
+ abstract val layout: ProjectLayout
23
+
18
24
@TaskAction
19
25
fun run () {
20
26
val archive = archiveFile.get().asFile
@@ -26,7 +32,7 @@ abstract class CreateSqliteCInterop: DefaultTask() {
26
32
linkerOpts.linux_x64 = -lpthread -ldl
27
33
linkerOpts.macos_x64 = -lpthread -ldl
28
34
staticLibraries=${archive.name}
29
- libraryPaths=${parent.relativeTo(project. layout.projectDirectory.asFile.canonicalFile)}
35
+ libraryPaths=${parent.relativeTo(layout.projectDirectory.asFile.canonicalFile)}
30
36
""" .trimIndent(),
31
37
)
32
38
}
You can’t perform that action at this time.
0 commit comments