Skip to content

Commit

Permalink
Finally, actually enable build cache
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Dec 20, 2023
1 parent 8ab1580 commit 678db21
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
"run": "./gradlew tagRelease",
"id": "tag_release",
"env": {
"BUILD_CACHE_PASSWORD": "${{ secrets.BUILD_CACHE_PASSWORD }}",
"BUILD_CACHE_USER": "${{ secrets.BUILD_CACHE_USER }}",
"BUILD_CACHE_URL": "${{ secrets.BUILD_CACHE_URL }}",
"RELEASE_MAVEN_PASSWORD": "${{ secrets.RELEASE_MAVEN_PASSWORD }}",
"RELEASE_MAVEN_USER": "github",
"RELEASE_MAVEN_URL": "https://maven.lukebemish.dev/releases/",
Expand All @@ -53,6 +56,9 @@
"run": "./gradlew build",
"id": "build",
"env": {
"BUILD_CACHE_PASSWORD": "${{ secrets.BUILD_CACHE_PASSWORD }}",
"BUILD_CACHE_USER": "${{ secrets.BUILD_CACHE_USER }}",
"BUILD_CACHE_URL": "${{ secrets.BUILD_CACHE_URL }}",
"RELEASE_MAVEN_PASSWORD": "${{ secrets.RELEASE_MAVEN_PASSWORD }}",
"RELEASE_MAVEN_USER": "github",
"RELEASE_MAVEN_URL": "https://maven.lukebemish.dev/releases/",
Expand All @@ -68,6 +74,9 @@
"run": "./gradlew publish modrinth curseforge",
"id": "publish",
"env": {
"BUILD_CACHE_PASSWORD": "${{ secrets.BUILD_CACHE_PASSWORD }}",
"BUILD_CACHE_USER": "${{ secrets.BUILD_CACHE_USER }}",
"BUILD_CACHE_URL": "${{ secrets.BUILD_CACHE_URL }}",
"RELEASE_MAVEN_PASSWORD": "${{ secrets.RELEASE_MAVEN_PASSWORD }}",
"RELEASE_MAVEN_USER": "github",
"RELEASE_MAVEN_URL": "https://maven.lukebemish.dev/releases/",
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
"run": "./gradlew build",
"id": "build",
"env": {
"BUILD_CACHE_PASSWORD": "${{ secrets.BUILD_CACHE_PASSWORD }}",
"BUILD_CACHE_USER": "${{ secrets.BUILD_CACHE_USER }}",
"BUILD_CACHE_URL": "${{ secrets.BUILD_CACHE_URL }}",
"SNAPSHOT_MAVEN_PASSWORD": "${{ secrets.SNAPSHOT_MAVEN_PASSWORD }}",
"SNAPSHOT_MAVEN_USER": "github",
"SNAPSHOT_MAVEN_URL": "https://maven.lukebemish.dev/snapshots/"
Expand All @@ -47,6 +50,9 @@
"run": "./gradlew publish",
"id": "publish",
"env": {
"BUILD_CACHE_PASSWORD": "${{ secrets.BUILD_CACHE_PASSWORD }}",
"BUILD_CACHE_USER": "${{ secrets.BUILD_CACHE_USER }}",
"BUILD_CACHE_URL": "${{ secrets.BUILD_CACHE_URL }}",
"SNAPSHOT_MAVEN_PASSWORD": "${{ secrets.SNAPSHOT_MAVEN_PASSWORD }}",
"SNAPSHOT_MAVEN_USER": "github",
"SNAPSHOT_MAVEN_URL": "https://maven.lukebemish.dev/snapshots/"
Expand Down
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ managedVersioning {
workflowDispatch.set(true)
onBranches.add '1.*'
gradleJob {
buildCache()
name.set 'build'
gradlew 'Build', 'build'
gradlew 'Publish', 'publish'
Expand All @@ -30,6 +31,7 @@ managedVersioning {
step {
setupGitUser()
}
buildCache()
readOnly.set false
gradlew 'Tag Release', 'tagRelease'
gradlew 'Build', 'build'
Expand Down

0 comments on commit 678db21

Please sign in to comment.