Skip to content

Commit 8aaa172

Browse files
authored
Merge pull request #775 from badoo/workflows-update
Workflows update
2 parents c1adae4 + 2347469 commit 8aaa172

File tree

9 files changed

+73
-68
lines changed

9 files changed

+73
-68
lines changed

.github/workflows/build.yml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -10,68 +10,68 @@ jobs:
1010
build:
1111
strategy:
1212
matrix:
13-
os: [ macOS-latest, ubuntu-latest ]
13+
os: [ macos-14, ubuntu-latest ]
1414
runs-on: ${{matrix.os}}
1515
name: Build on ${{matrix.os}}
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
- name: Install Java
20-
uses: actions/setup-java@v3
20+
uses: actions/setup-java@v4
2121
with:
2222
distribution: 'zulu'
2323
java-version: '17'
2424
- name: Install dependencies
2525
if: matrix.os == 'ubuntu-latest'
2626
run: sudo apt-get update && sudo apt-get install libcurl4-openssl-dev libgtk-3-dev nodejs chromium-browser
2727
- name: Select Xcode version
28-
if: matrix.os == 'macOS-latest'
29-
uses: maxim-lobanov/setup-xcode@9a697e2b393340c3cacd97468baa318e4c883d98
28+
if: matrix.os == 'macos-14'
29+
uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd
3030
with:
31-
xcode-version: '14.2.0'
31+
xcode-version: '15.2.0'
32+
- name: Setup Gradle
33+
uses: gradle/actions/setup-gradle@v3
34+
with:
35+
gradle-home-cache-cleanup: true
36+
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
37+
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
3238
- name: Validate Gradle Wrapper
33-
uses: gradle/wrapper-validation-action@v1
39+
uses: gradle/wrapper-validation-action@v2
3440
- name: Build Linux
3541
if: matrix.os == 'ubuntu-latest'
36-
uses: gradle/gradle-build-action@v2
37-
with:
38-
gradle-home-cache-cleanup: true
39-
cache-read-only: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/version-2.0' }}
40-
arguments: |
41-
build
42-
publishAllFilteredToMavenLocal
43-
-Ptarget=all_linux_hosted
42+
run: >
43+
./gradlew
44+
build
45+
publishAllFilteredToMavenLocal
46+
-Ptarget=all_linux_hosted
4447
- name: Build macOS
45-
if: matrix.os == 'macOS-latest'
46-
uses: gradle/gradle-build-action@v2
47-
with:
48-
gradle-home-cache-cleanup: true
49-
cache-read-only: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/version-2.0' }}
50-
arguments: |
51-
:reaktive-annotations:build
52-
:utils:build
53-
:reaktive-testing:build
54-
:reaktive:build
55-
:coroutines-interop:build
56-
:sample-mpp-module:build
57-
publishAllFilteredToMavenLocal
58-
-Ptarget=all_macos_hosted
48+
if: matrix.os == 'macos-14'
49+
run:
50+
./gradlew
51+
:reaktive-annotations:build
52+
:utils:build
53+
:reaktive-testing:build
54+
:reaktive:build
55+
:coroutines-interop:build
56+
:sample-mpp-module:build
57+
publishAllFilteredToMavenLocal
58+
-Ptarget=all_macos_hosted
5959
# Do not invoke from Gradle, it creates circular dependency (Gradle invokes XCode invokes Gradle).
6060
- name: Build iOS app
61-
if: matrix.os == 'macOS-latest'
61+
if: matrix.os == 'macos-14'
6262
working-directory: sample-ios-app
6363
run: >
6464
xcodebuild
6565
-project sample-ios-app.xcodeproj
6666
-scheme "sample-ios-app"
6767
-sdk "iphonesimulator"
68-
-arch "x86_64"
68+
-arch "arm64"
6969
- name: Bundle the build report
7070
if: failure()
7171
run: find . -type d -name 'reports' | zip -@ -r build-reports.zip
7272
- name: Upload the build report
7373
if: failure()
74-
uses: actions/upload-artifact@master
74+
uses: actions/upload-artifact@v4
7575
with:
7676
name: error-report
7777
path: build-reports.zip

.github/workflows/release.yml

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -23,62 +23,66 @@ jobs:
2323

2424
publish:
2525
name: Publish
26-
runs-on: macOS-latest
26+
runs-on: macos-14
2727
needs: create-staging-repository
2828
env:
2929
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
3030
steps:
3131
- name: Checkout
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3333
- name: Install Java
34-
uses: actions/setup-java@v3
34+
uses: actions/setup-java@v4
3535
with:
3636
distribution: 'zulu'
3737
java-version: '17'
3838
- name: Select Xcode version
39-
uses: maxim-lobanov/setup-xcode@9a697e2b393340c3cacd97468baa318e4c883d98
39+
uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd
4040
with:
41-
xcode-version: '14.2.0'
42-
- name: Publish
43-
uses: gradle/gradle-build-action@v2
41+
xcode-version: '15.2.0'
42+
- name: Setup Gradle
43+
uses: gradle/actions/setup-gradle@v3
4444
with:
4545
cache-read-only: true
46-
arguments: |
47-
publishAllFilteredToSonatype
48-
-Psigning.password=${{ secrets.SIGNING_PASSWORD }}
49-
-Psonatype.username=${{ secrets.SONATYPE_USERNAME }}
50-
-Psonatype.password=${{ secrets.SONATYPE_PASSWORD }}
51-
-Psonatype.repository=${{ needs.create-staging-repository.outputs.repository-id }}
46+
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
47+
- name: Publish
48+
run: >
49+
./gradlew
50+
publishAllFilteredToSonatype
51+
-Psigning.password=${{ secrets.SIGNING_PASSWORD }}
52+
-Psonatype.username=${{ secrets.SONATYPE_USERNAME }}
53+
-Psonatype.password=${{ secrets.SONATYPE_PASSWORD }}
54+
-Psonatype.repository=${{ needs.create-staging-repository.outputs.repository-id }}
5255
5356
check:
5457
name: Check publication
55-
runs-on: macOS-latest
58+
runs-on: macos-14
5659
needs: [ create-staging-repository, publish ]
5760
steps:
5861
- name: Checkout
59-
uses: actions/checkout@v3
62+
uses: actions/checkout@v4
6063
- name: Install Java
61-
uses: actions/setup-java@v3
64+
uses: actions/setup-java@v4
6265
with:
6366
distribution: 'zulu'
6467
java-version: '17'
6568
- name: Select Xcode version
66-
uses: maxim-lobanov/setup-xcode@9a697e2b393340c3cacd97468baa318e4c883d98
69+
uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd
6770
with:
68-
xcode-version: '14.2.0'
69-
- name: Check publication
70-
uses: gradle/gradle-build-action@v2
71+
xcode-version: '15.2.0'
72+
- name: Setup Gradle
73+
uses: gradle/actions/setup-gradle@v3
7174
with:
7275
cache-read-only: true
73-
# Exclude kotlinStoreYarnLock because publication check project has different from the main project
74-
# dependencies, and the task fails the build. Ignoring it looks fine.
75-
arguments: |
76-
:tools:check-publication:build
77-
--exclude-task kotlinStoreYarnLock
78-
-Pcheck_publication
79-
-Psonatype.username=${{ secrets.SONATYPE_USERNAME }}
80-
-Psonatype.password=${{ secrets.SONATYPE_PASSWORD }}
81-
-Psonatype.repository=${{ needs.create-staging-repository.outputs.repository-id }}
76+
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
77+
- name: Check publication
78+
run: >
79+
./gradlew
80+
:tools:check-publication:build
81+
--exclude-task kotlinStoreYarnLock
82+
-Pcheck_publication
83+
-Psonatype.username=${{ secrets.SONATYPE_USERNAME }}
84+
-Psonatype.password=${{ secrets.SONATYPE_PASSWORD }}
85+
-Psonatype.repository=${{ needs.create-staging-repository.outputs.repository-id }}
8286
8387
close-staging-repository:
8488
runs-on: ubuntu-latest

benchmarks/jmh/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies {
1111
}
1212

1313
kotlin {
14-
jvmToolchain(11)
14+
jvmToolchain(17)
1515
}
1616

1717
jmh {

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ kotlin.code.style=official
22
org.gradle.jvmargs=-Xmx4g -Dfile.encoding=UTF-8
33
org.gradle.parallel=true
44
org.gradle.caching=true
5-
org.gradle.configuration-cache=true
5+
# https://youtrack.jetbrains.com/issue/KT-64851
6+
org.gradle.configuration-cache=false
67

78
# AndroidX package structure to make it clearer which packages are bundled with the
89
# Android operating system, and which are packaged with the app's APK

gradle/wrapper/gradle-wrapper.jar

34 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

gradlew

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rxjava2-interop/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ compileKotlin {
1616
}
1717

1818
compileJava {
19-
targetCompatibility(JavaVersion.VERSION_1_8)
19+
targetCompatibility = JavaVersion.VERSION_1_8
2020
}
2121

2222
publishing {

rxjava3-interop/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ compileKotlin {
1616
}
1717

1818
compileJava {
19-
targetCompatibility(JavaVersion.VERSION_1_8)
19+
targetCompatibility = JavaVersion.VERSION_1_8
2020
}
2121

2222
publishing {

0 commit comments

Comments
 (0)