-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #839 from splendo/feature/838-properties
Harmonize gradle.properties with other kaluga projects
- Loading branch information
Showing
8 changed files
with
19 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
name: 'Setup macOS workspace reusable workflow' | ||
|
||
env: | ||
GRADLE_OPTS: "-Dorg.gradle.jvmargs=\"-Xmx8G -XX:MaxMetaspaceSize=512m -Dorg.gradle.daemon=false -Dkotlin.incremental=false\" -Dorg.gradle.daemon=false -Dkotlin.incremental=false -Dkotlin.daemon.jvm.options=-Xmx8G,-XX:MaxMetaspaceSize=512m,-Dorg.gradle.daemon=false,-Dkotlin.incremental=false" | ||
JAVA_OPTS: "-Xmx8G -XX:MaxMetaspaceSize=512m -Dorg.gradle.daemon=false -Dkotlin.incremental=false" | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
|
@@ -19,7 +15,7 @@ on: | |
|
||
outputs: | ||
kotlinVersion: | ||
description: "kaluga.kotlinVersion property from gradle.properties" | ||
description: "kotlin version from libs.versions.toml" | ||
value: ${{ jobs.setup.outputs.kotlinVersion }} | ||
projects: | ||
description: "Gradle projects that do not dependent on another project or have other projects dependent on them" | ||
|
@@ -31,27 +27,27 @@ jobs: | |
|
||
outputs: | ||
projects: ${{ steps.envFile.outputs.projects }} | ||
kotlinVersion: ${{ steps.kotlinVersion.outputs.kotlinVersion }} | ||
kotlinVersion: ${{ steps.kotlinVersion.outputs.value}} | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: remove VM settings as defined in gradle.properties (for using in the IDE) | ||
run: sed -i '' -e '/org.gradle.jvmargs/d' gradle.properties; cat gradle.properties | ||
|
||
- name: get Kotlin version | ||
- name: read TOML version file | ||
id: kotlinVersion | ||
run: grep kaluga.kotlinVersion= gradle.properties | sed s/"kaluga."// >> $GITHUB_OUTPUT | ||
uses: SebRollen/[email protected] | ||
with: | ||
file: gradle/libs.versions.toml | ||
field: 'versions.kotlin' | ||
|
||
- name: setup tools and enable Gradle cache writing | ||
uses: ./.github/workflows/setup_tools_macos/ | ||
with: | ||
gradle-cache-read-only: 'false' | ||
restore-workspace-cache: 'false' | ||
kotlinVersion: ${{ steps.kotlinVersion.outputs.kotlinVersion }} | ||
kotlinVersion: ${{ steps.kotlinVersion.outputs.value }} | ||
arch: ${{ runner.arch == 'X86' && 'x86' || runner.arch == 'X64' && 'x86_64' || runner.arch == 'ARM' && 'arm32' || 'arm64' }} | ||
project: ${{ inputs.project }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters