Skip to content

Commit 57148d1

Browse files
committed
build: simplify CI_SINGLE_BUILD by writing to file instead of conditional in gradle
1 parent 50d4a11 commit 57148d1

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/build.yml

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ jobs:
5151
uses: gradle/actions/setup-gradle@v3
5252
with:
5353
cache-read-only: false
54+
- name: Set active version
55+
run: printf "${{ matrix.target }}" > ./versions/current
5456
- name: Build ${{ matrix.target }}
5557
run: ./gradlew "Refresh active project" buildAndCollectActive --stacktrace
5658
env:

stonecutter.gradle.kts

+1-6
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ plugins {
1111
id("dev.isxander.modstitch.base") apply false
1212
}
1313

14-
val ciSingleBuild: String? = System.getenv("CI_SINGLE_BUILD")
15-
if (ciSingleBuild != null) {
16-
stonecutter active ciSingleBuild.split(":")[0]
17-
} else {
18-
stonecutter active file("versions/current")
19-
}
14+
stonecutter active file("versions/current")
2015

2116
stonecutter.tree.nodes.forEach { it.project.plugins.apply("dev.kikugie.stonecutter") }
2217

0 commit comments

Comments
 (0)