-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change more Gradle config and GitHub Actions workflows (#2544)
- Loading branch information
1 parent
b965407
commit 9b9b7e2
Showing
24 changed files
with
158 additions
and
188 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,9 @@ jobs: | |
working-directory: arrow-site | ||
run: ./gradlew runAnk | ||
|
||
- name: Stop Gradle daemons | ||
run: ./gradlew --stop | ||
|
||
linux_jvm_and_js: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 25 | ||
|
@@ -93,7 +96,10 @@ jobs: | |
name: test-reports | ||
path: test-reports | ||
|
||
macos_and_ios: | ||
- name: Stop Gradle daemons | ||
run: ./gradlew --stop | ||
|
||
apple: | ||
runs-on: macos-latest | ||
timeout-minutes: 20 | ||
|
||
|
@@ -116,7 +122,7 @@ jobs: | |
- name: Build | ||
working-directory: arrow-libs | ||
run: ./gradlew iosX64Test macosX64Test | ||
run: ./gradlew iosX64Test macosX64Test tvosX64Test watchosX64Test | ||
|
||
- name: "Prepare test reports" | ||
if: ${{ always() }} | ||
|
@@ -134,46 +140,8 @@ jobs: | |
name: test-reports | ||
path: test-reports | ||
|
||
tv_and_watchos: | ||
runs-on: macos-latest | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Restore Gradle cache | ||
id: cache | ||
uses: actions/[email protected] | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
~/.konan | ||
key: tv-watchos-step-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
tv-watch-os-step-gradle- | ||
- name: Build | ||
working-directory: arrow-libs | ||
run: ./gradlew tvosX64Test watchosX64Test | ||
|
||
- name: "Prepare test reports" | ||
if: ${{ always() }} | ||
run: | | ||
mkdir test-reports | ||
for report in `ls -d arrow-libs/**/**/build/reports/tests`; do | ||
module=$(echo $report | cut -d/ -f3) | ||
cp -r $report test-reports/$module | ||
done | ||
- name: "Make test reports available to download" | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: test-reports | ||
path: test-reports | ||
- name: Stop Gradle daemons | ||
run: ./gradlew --stop | ||
|
||
windows: | ||
runs-on: windows-latest | ||
|
@@ -199,3 +167,6 @@ jobs: | |
- name: Build | ||
working-directory: arrow-libs | ||
run: ./gradlew mingwX64Test | ||
|
||
- name: Stop Gradle daemons | ||
run: ./gradlew --stop |
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
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
Reason of this file: | ||
The use of Ank Gradle Plugin in the same workspace where is developed. | ||
Details: | ||
Ank Gradle Plugin could be added with project(":arrow-ank-gradle"). | ||
However, the problem raises with the things that are done by that plugin. | ||
It adds the dependency of arrow-ank with groupId and all its transitive | ||
dependencies are added as well. | ||
That's the reason why of using this file that replaces those dependencies | ||
with groupId with the correspondent local projects. | ||
*/ | ||
enableFeaturePreview("VERSION_CATALOGS") | ||
|
||
dependencyResolutionManagement { | ||
versionCatalogs { | ||
create("libs") { | ||
from(files("../gradle/libs.versions.toml")) | ||
} | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
} | ||
|
||
includeBuild("../arrow-libs/") { | ||
dependencySubstitution { | ||
substitute(module("io.arrow-kt:arrow-ank-gradle")).using(project(":arrow-ank-gradle")) | ||
substitute(module("io.arrow-kt:arrow-ank")).using(project(":arrow-ank")) | ||
substitute(module("io.arrow-kt:arrow-core")).using(project(":arrow-core")) | ||
substitute(module("io.arrow-kt:arrow-meta")).using(project(":arrow-meta")) | ||
substitute(module("io.arrow-kt:arrow-fx-stm")).using(project(":arrow-fx-stm")) | ||
substitute(module("io.arrow-kt:arrow-fx-coroutines")).using(project(":arrow-fx-coroutines")) | ||
substitute(module("io.arrow-kt:arrow-optics")).using(project(":arrow-optics")) | ||
} | ||
} |
Oops, something went wrong.