Skip to content

Commit d0e64d1

Browse files
committed
Updated release workflow to split native jobs
1 parent 57909ec commit d0e64d1

File tree

1 file changed

+74
-10
lines changed

1 file changed

+74
-10
lines changed

.github/workflows/release_all.yml

Lines changed: 74 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ env:
1919
GRADLE_OPTS: -Dorg.gradle.configureondemand=true -Dorg.gradle.parallel=false -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"
2020

2121
jobs:
22-
publish_linux:
22+
publish_base:
2323
runs-on: ubuntu-latest
2424

2525
steps:
@@ -44,12 +44,28 @@ jobs:
4444
- name: publish js release
4545
run: ./gradlew publishJsPublicationToDeployRepository
4646

47-
- name: publish linux x64 release
48-
run: ./gradlew publishLinuxX64PublicationToDeployRepository
49-
5047
- name: publish bom release
5148
run: ./gradlew publishKotestBomPublicationToDeployRepository
5249

50+
publish_linux:
51+
runs-on: ubuntu-latest
52+
53+
steps:
54+
- name: Checkout the repo
55+
uses: actions/checkout@v2
56+
with:
57+
fetch-depth: 0
58+
ref: ${{ github.event.inputs.branch }}
59+
60+
- name: Setup JDK
61+
uses: actions/setup-java@v2
62+
with:
63+
distribution: 'zulu'
64+
java-version: '8'
65+
66+
- name: publish linux x64 release
67+
run: ./gradlew publishLinuxX64PublicationToDeployRepository
68+
5369
publish_macos:
5470
runs-on: macos-11
5571
needs: publish_linux
@@ -72,14 +88,21 @@ jobs:
7288
- name: publish macosArm64 release
7389
run: ./gradlew publishMacosArm64PublicationToDeployRepository
7490

75-
- name: publish tvosX64 release
76-
run: ./gradlew publishTvosX64PublicationToDeployRepository
91+
publish_watchos:
92+
runs-on: macos-11
93+
needs: publish_linux
7794

78-
- name: publish tvosArm64 release
79-
run: ./gradlew publishTvosArm64PublicationToDeployRepository
95+
steps:
96+
- name: Checkout the repo
97+
uses: actions/checkout@v2
98+
with:
99+
fetch-depth: 0
100+
ref: ${{ github.event.inputs.branch }}
80101

81-
- name: publish tvosSimulatorArm64 release
82-
run: ./gradlew publishTvosSimulatorArm64PublicationToDeployRepository
102+
- name: Setup JDK
103+
uses: actions/setup-java@v1
104+
with:
105+
java-version: '8'
83106

84107
- name: publish watchosX64 release
85108
run: ./gradlew publishWatchosX64PublicationToDeployRepository
@@ -96,6 +119,22 @@ jobs:
96119
- name: publish watchosSimulatorArm64 release
97120
run: ./gradlew publishWatchosSimulatorArm64PublicationToDeployRepository
98121

122+
publish_ios:
123+
runs-on: macos-11
124+
needs: publish_linux
125+
126+
steps:
127+
- name: Checkout the repo
128+
uses: actions/checkout@v2
129+
with:
130+
fetch-depth: 0
131+
ref: ${{ github.event.inputs.branch }}
132+
133+
- name: Setup JDK
134+
uses: actions/setup-java@v1
135+
with:
136+
java-version: '8'
137+
99138
- name: publish iosX64 release
100139
run: ./gradlew publishIosX64PublicationToDeployRepository
101140

@@ -108,6 +147,31 @@ jobs:
108147
- name: publish iosSimulatorArm64 release
109148
run: ./gradlew publishIosSimulatorArm64PublicationToDeployRepository
110149

150+
publish_tvos:
151+
runs-on: macos-11
152+
needs: publish_linux
153+
154+
steps:
155+
- name: Checkout the repo
156+
uses: actions/checkout@v2
157+
with:
158+
fetch-depth: 0
159+
ref: ${{ github.event.inputs.branch }}
160+
161+
- name: Setup JDK
162+
uses: actions/setup-java@v1
163+
with:
164+
java-version: '8'
165+
166+
- name: publish tvosX64 release
167+
run: ./gradlew publishTvosX64PublicationToDeployRepository
168+
169+
- name: publish tvosArm64 release
170+
run: ./gradlew publishTvosArm64PublicationToDeployRepository
171+
172+
- name: publish tvosSimulatorArm64 release
173+
run: ./gradlew publishTvosSimulatorArm64PublicationToDeployRepository
174+
111175
publish_windows:
112176
runs-on: windows-latest
113177
needs: publish_macos

0 commit comments

Comments
 (0)