Skip to content

Commit

Permalink
feat(ci): refactor and separate push to master / PR workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
growse committed Sep 23, 2024
1 parent df49a8a commit d7e06e2
Show file tree
Hide file tree
Showing 7 changed files with 329 additions and 373 deletions.
29 changes: 29 additions & 0 deletions .github/actions/gradle-task/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: "gradle-task"
description: "Runs a gradle task"
inputs:
gradle-cache-encryption-key:
description: "Gradle cache encryption key"
required: true
task:
description: "Gradle task to run"
required: true

runs:
using: "composite"
steps:
- name: "Java setup"
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4
with:
distribution: "temurin"
java-version: "17"
- name: Gradle setup
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: false
cache-encryption-key: ${{ inputs.gradle-cache-encryption-key }}
- name: Ktfmt
shell: bash
run: ./project/gradlew -p project ${{ inputs.task }} --scan
env:
GRADLE_OPTS: "-Dorg.gradle.daemon=true -Dorg.gradle.configuration-cache=true -Dorg.gradle.parallel=true -Dorg.gradle.caching=true -Dorg.gradle.jvmargs='-Xmx3096M -Dkotlin.daemon.jvm.options=-Xmx2048M -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC'"
361 changes: 0 additions & 361 deletions .github/workflows/build-and-test.yaml

This file was deleted.

Loading

0 comments on commit d7e06e2

Please sign in to comment.