@@ -12,13 +12,14 @@ jobs:
12
12
build :
13
13
strategy :
14
14
matrix :
15
- os : [macOS-latest, windows-latest, ubuntu-latest]
16
-
15
+ os :
16
+ - macOS-latest
17
+ - windows-latest
18
+ - ubuntu-latest
17
19
runs-on : ${{matrix.os}}
18
-
19
20
steps :
20
- - name : Checkout the repo
21
- uses : actions/checkout@v2
21
+ - name : Checkout the repo
22
+ uses : actions/checkout@v2
22
23
23
24
- name : Cache gradle
24
25
uses : actions/cache@v1
@@ -28,41 +29,41 @@ jobs:
28
29
restore-keys : |
29
30
${{ runner.os }}-gradle-
30
31
31
- - name : Run ubuntu tests
32
- if : matrix.os == 'ubuntu-latest'
33
- run : ./gradlew check
32
+ - name : Run ubuntu tests
33
+ if : matrix.os == 'ubuntu-latest'
34
+ run : ./gradlew check
34
35
35
- - name : Run windows tests
36
- if : matrix.os == 'windows-latest'
37
- run : ./gradlew mingwX64Test
36
+ - name : Run windows tests
37
+ if : matrix.os == 'windows-latest'
38
+ run : ./gradlew mingwX64Test
38
39
39
- - name : Run macOS tests
40
- if : matrix.os == 'macOS-latest'
41
- run : ./gradlew macosX64Test
40
+ - name : Run macOS tests
41
+ if : matrix.os == 'macOS-latest'
42
+ run : ./gradlew macosX64Test
42
43
43
- - name : Bundle the build report
44
- if : failure()
45
- run : find . -type d -name 'reports' | zip -@ -r build-reports.zip
44
+ - name : Bundle the build report
45
+ if : failure()
46
+ run : find . -type d -name 'reports' | zip -@ -r build-reports.zip
46
47
47
- - name : Upload the build report
48
- if : failure()
49
- uses : actions/upload-artifact@master
50
- with :
51
- name : error-report
52
- path : build-reports.zip
48
+ - name : Upload the build report
49
+ if : failure()
50
+ uses : actions/upload-artifact@master
51
+ with :
52
+ name : error-report
53
+ path : build-reports.zip
53
54
54
55
deploy-mac-and-linux :
55
56
needs : build
56
57
runs-on : macOS-latest
57
58
steps :
58
- - name : Checkout the repo
59
- uses : actions/checkout@v2
59
+ - name : Checkout the repo
60
+ uses : actions/checkout@v2
60
61
# checkout the full repo so we can count commits for a build number
61
- with :
62
- fetch-depth : 0
62
+ with :
63
+ fetch-depth : 0
63
64
64
- - name : Fetch git tags
65
- run : git fetch origin +refs/tags/*:refs/tags/*
65
+ - name : Fetch git tags
66
+ run : git fetch origin +refs/tags/*:refs/tags/*
66
67
67
68
- name : Cache gradle
68
69
uses : actions/cache@v1
@@ -72,28 +73,31 @@ jobs:
72
73
restore-keys : |
73
74
${{ runner.os }}-gradle-
74
75
75
- - name : Deploy to sonatype snapshots
76
- run : ./gradlew publish -PinferVersion=true
77
- env :
78
- ORG_GRADLE_PROJECT_SONATYPE_USERNAME : ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_USERNAME }}
79
- ORG_GRADLE_PROJECT_SONATYPE_PASSWORD : ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_PASSWORD }}
80
- ORG_GRADLE_PROJECT_signingKey : ${{ secrets.ORG_GRADLE_PROJECT_signingKey }}
76
+ - name : Deploy to sonatype snapshots
77
+ run : ./gradlew :clikt: publish -PinferVersion=true
78
+ env :
79
+ ORG_GRADLE_PROJECT_SONATYPE_USERNAME : ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_USERNAME }}
80
+ ORG_GRADLE_PROJECT_SONATYPE_PASSWORD : ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_PASSWORD }}
81
+ ORG_GRADLE_PROJECT_signingKey : ${{ secrets.ORG_GRADLE_PROJECT_signingKey }}
81
82
82
83
deploy-windows :
83
84
needs : build
84
85
runs-on : windows-latest
85
86
steps :
86
- - name : Checkout the repo
87
- uses : actions/checkout@v2
88
- with :
89
- fetch-depth : 0
90
- - run : git fetch origin +refs/tags/*:refs/tags/*
91
- - name : Deploy to sonatype snapshots
92
- run : ./gradlew publishMingwX64PublicationToMavenRepository -PinferVersion=true
93
- env :
94
- ORG_GRADLE_PROJECT_SONATYPE_USERNAME : ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_USERNAME }}
95
- ORG_GRADLE_PROJECT_SONATYPE_PASSWORD : ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_PASSWORD }}
96
- ORG_GRADLE_PROJECT_signingKey : ${{ secrets.ORG_GRADLE_PROJECT_signingKey }}
87
+ - name : Checkout the repo
88
+ uses : actions/checkout@v2
89
+ with :
90
+ fetch-depth : 0
91
+
92
+ - name : Fetch git tags
93
+ run : git fetch origin +refs/tags/*:refs/tags/*
94
+
95
+ - name : Deploy to sonatype snapshots
96
+ run : ./gradlew publishMingwX64PublicationToMavenRepository -PinferVersion=true
97
+ env :
98
+ ORG_GRADLE_PROJECT_SONATYPE_USERNAME : ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_USERNAME }}
99
+ ORG_GRADLE_PROJECT_SONATYPE_PASSWORD : ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_PASSWORD }}
100
+ ORG_GRADLE_PROJECT_signingKey : ${{ secrets.ORG_GRADLE_PROJECT_signingKey }}
97
101
98
102
env :
99
103
GRADLE_OPTS : -Dorg.gradle.configureondemand=true -Dorg.gradle.parallel=true -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"
0 commit comments