Skip to content

Commit 4e06871

Browse files
authored
Kotlin/Native support (#104)
Reworked TCP implementation Multiplatform Synchronized IntMap implementation
1 parent b23ac26 commit 4e06871

File tree

54 files changed

+1585
-259
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1585
-259
lines changed

.github/workflows/gradle-all.yml

Lines changed: 44 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,60 @@ on:
99

1010
jobs:
1111
build:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ macos-latest ]
16+
macTargetsCompilation: [ macos, ios, watchos, tvos ]
17+
include:
18+
- os: ubuntu-20.04
19+
- os: windows-latest
20+
fail-fast: false
1221

13-
runs-on: ubuntu-20.04
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Set up JDK
25+
uses: actions/setup-java@v1
26+
with:
27+
java-version: 11
28+
- name: Cache Gradle packages
29+
uses: actions/cache@v2
30+
with:
31+
path: |
32+
~/.gradle/caches/modules-2
33+
~/.konan
34+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.*') }} #hash based on *.gradle.kts and *.gradle.properties
35+
restore-keys: ${{ runner.os }}-gradle
36+
- uses: eskatos/gradle-command-action@v1
37+
with:
38+
arguments: build -PmacTargetsCompilation=${{ matrix.macTargetsCompilation }} --scan --no-daemon
1439

40+
publish:
41+
needs: build
42+
runs-on: ${{ matrix.os }}
1543
strategy:
1644
matrix:
17-
jdk: [ 1.8, 11, 14 ]
45+
os: [ ubuntu-20.04, macos-latest, windows-latest ]
1846
fail-fast: false
1947

2048
steps:
2149
- uses: actions/checkout@v2
22-
- name: Set up JDK ${{ matrix.jdk }}
50+
- name: Set up JDK
2351
uses: actions/setup-java@v1
2452
with:
25-
java-version: ${{ matrix.jdk }}
53+
java-version: 11
2654
- name: Cache Gradle packages
27-
uses: actions/cache@v1
55+
uses: actions/cache@v2
2856
with:
29-
path: ~/.gradle/caches
30-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
57+
path: |
58+
~/.gradle/caches/modules-2
59+
~/.konan
60+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.*') }} #hash based on *.gradle.kts and *.gradle.properties
3161
restore-keys: ${{ runner.os }}-gradle
32-
- name: Grant execute permission for gradlew
33-
run: chmod +x gradlew
34-
- name: Build with Gradle
35-
run: ./gradlew clean build --info
36-
- name: Publish Packages to Artifactory
37-
if: ${{ matrix.jdk == '1.8' }}
38-
run: ./gradlew -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PversionSuffix="-${githubRef#refs/heads/}-SNAPSHOT" -PbuildNumber="${buildNumber}" artifactoryPublish --stacktrace
39-
env:
40-
bintrayUser: ${{ secrets.bintrayUser }}
41-
bintrayKey: ${{ secrets.bintrayKey }}
42-
githubRef: ${{ github.ref }}
43-
buildNumber: ${{ github.run_number }}
62+
- if: ${{ matrix.os == 'windows-latest' }}
63+
run: echo ("::set-env name=BRANCH_NAME::" + $env:GITHUB_REF.replace('refs/heads/', ''))
64+
- if: ${{ matrix.os != 'windows-latest' }}
65+
run: echo "##[set-env name=BRANCH_NAME;]$(echo ${GITHUB_REF#refs/heads/})"
66+
- uses: eskatos/gradle-command-action@v1
67+
with:
68+
arguments: artifactoryPublish -PbintrayUser=${{ secrets.bintrayUser }} -PbintrayKey=${{ secrets.bintrayKey }} -PversionSuffix=-${{ env.BRANCH_NAME }}-SNAPSHOT -PbuildNumber=${{ github.run_number }} --stacktrace --no-daemon

.github/workflows/gradle-main.yml

Lines changed: 40 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,56 @@ on:
99

1010
jobs:
1111
build:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ macos-latest ]
16+
macTargetsCompilation: [ macos, ios, watchos, tvos ]
17+
include:
18+
- os: ubuntu-20.04
19+
- os: windows-latest
20+
fail-fast: false
1221

13-
runs-on: ubuntu-20.04
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Set up JDK
25+
uses: actions/setup-java@v1
26+
with:
27+
java-version: 11
28+
- name: Cache Gradle packages
29+
uses: actions/cache@v2
30+
with:
31+
path: |
32+
~/.gradle/caches/modules-2
33+
~/.konan
34+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.*') }} #hash based on *.gradle.kts and *.gradle.properties
35+
restore-keys: ${{ runner.os }}-gradle
36+
- uses: eskatos/gradle-command-action@v1
37+
with:
38+
arguments: build -PmacTargetsCompilation=${{ matrix.macTargetsCompilation }} --scan --no-daemon
1439

40+
publish:
41+
needs: build
42+
runs-on: ${{ matrix.os }}
1543
strategy:
1644
matrix:
17-
jdk: [ 1.8, 11, 14 ]
45+
os: [ ubuntu-20.04, macos-latest, windows-latest ]
1846
fail-fast: false
1947

2048
steps:
2149
- uses: actions/checkout@v2
22-
- name: Set up JDK ${{ matrix.jdk }}
50+
- name: Set up JDK
2351
uses: actions/setup-java@v1
2452
with:
25-
java-version: ${{ matrix.jdk }}
53+
java-version: 11
2654
- name: Cache Gradle packages
27-
uses: actions/cache@v1
55+
uses: actions/cache@v2
2856
with:
29-
path: ~/.gradle/caches
30-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
57+
path: |
58+
~/.gradle/caches/modules-2
59+
~/.konan
60+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.*') }} #hash based on *.gradle.kts and *.gradle.properties
3161
restore-keys: ${{ runner.os }}-gradle
32-
- name: Grant execute permission for gradlew
33-
run: chmod +x gradlew
34-
- name: Build with Gradle
35-
run: ./gradlew clean build
36-
- name: Publish Packages to Artifactory
37-
if: ${{ matrix.jdk == '1.8' }}
38-
run: ./gradlew -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PversionSuffix="-SNAPSHOT" -PbuildNumber="${buildNumber}" artifactoryPublish --stacktrace
39-
env:
40-
bintrayUser: ${{ secrets.bintrayUser }}
41-
bintrayKey: ${{ secrets.bintrayKey }}
42-
buildNumber: ${{ github.run_number }}
62+
- uses: eskatos/gradle-command-action@v1
63+
with:
64+
arguments: artifactoryPublish -PbintrayUser=${{ secrets.bintrayUser }} -PbintrayKey=${{ secrets.bintrayKey }} -PversionSuffix=-SNAPSHOT -PbuildNumber=${{ github.run_number }} --stacktrace --no-daemon

.github/workflows/gradle-pr.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,33 @@
11
name: Pull Request CI
22

3-
on: [pull_request]
3+
on: [ pull_request ]
44

55
jobs:
66
build:
7-
8-
runs-on: ubuntu-20.04
9-
7+
runs-on: ${{ matrix.os }}
108
strategy:
119
matrix:
12-
jdk: [ 1.8, 11, 14 ]
10+
os: [ macos-latest ]
11+
macTargetsCompilation: [ macos, ios, watchos, tvos ]
12+
include:
13+
- os: ubuntu-20.04
14+
- os: windows-latest
1315
fail-fast: false
1416

1517
steps:
1618
- uses: actions/checkout@v2
17-
- name: Set up JDK ${{ matrix.jdk }}
19+
- name: Set up JDK
1820
uses: actions/setup-java@v1
1921
with:
20-
java-version: ${{ matrix.jdk }}
22+
java-version: 11
2123
- name: Cache Gradle packages
22-
uses: actions/cache@v1
24+
uses: actions/cache@v2
2325
with:
24-
path: ~/.gradle/caches
25-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
26+
path: |
27+
~/.gradle/caches/modules-2
28+
~/.konan
29+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.*') }} #hash based on *.gradle.kts and *.gradle.properties
2630
restore-keys: ${{ runner.os }}-gradle
27-
- name: Grant execute permission for gradlew
28-
run: chmod +x gradlew
29-
- name: Build with Gradle
30-
run: ./gradlew clean build
31+
- uses: eskatos/gradle-command-action@v1
32+
with:
33+
arguments: build -PmacTargetsCompilation=${{ matrix.macTargetsCompilation }} --scan --no-daemon

.github/workflows/gradle-release.yml

Lines changed: 49 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,62 @@ on:
88
- '*' # Push events to matching *, i.e. 1.0, 20.15.10
99

1010
jobs:
11-
publish:
11+
build:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ macos-latest ]
16+
macTargetsCompilation: [ macos, ios, watchos, tvos ]
17+
include:
18+
- os: ubuntu-20.04
19+
- os: windows-latest
20+
fail-fast: false
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Set up JDK
25+
uses: actions/setup-java@v1
26+
with:
27+
java-version: 11
28+
- name: Cache Gradle packages
29+
uses: actions/cache@v2
30+
with:
31+
path: |
32+
~/.gradle/caches/modules-2
33+
~/.konan
34+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.*') }} #hash based on *.gradle.kts and *.gradle.properties
35+
restore-keys: ${{ runner.os }}-gradle
36+
- uses: eskatos/gradle-command-action@v1
37+
with:
38+
arguments: build -PmacTargetsCompilation=${{ matrix.macTargetsCompilation }} --scan --no-daemon
1239

13-
runs-on: ubuntu-20.04
40+
publish:
41+
needs: build
42+
runs-on: ${{ matrix.os }}
43+
strategy:
44+
matrix:
45+
os: [ ubuntu-20.04, macos-latest, windows-latest ]
46+
fail-fast: false
1447

1548
steps:
1649
- uses: actions/checkout@v2
17-
- name: Set up JDK 1.8
50+
- name: Set up JDK
1851
uses: actions/setup-java@v1
1952
with:
20-
java-version: 1.8
53+
java-version: 11
2154
- name: Cache Gradle packages
22-
uses: actions/cache@v1
55+
uses: actions/cache@v2
2356
with:
24-
path: ~/.gradle/caches
25-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
57+
path: |
58+
~/.gradle/caches/modules-2
59+
~/.konan
60+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.*') }} #hash based on *.gradle.kts and *.gradle.properties
2661
restore-keys: ${{ runner.os }}-gradle
27-
- name: Grant execute permission for gradlew
28-
run: chmod +x gradlew
29-
- name: Build with Gradle
30-
run: ./gradlew clean build
62+
- if: ${{ matrix.os == 'windows-latest' }}
63+
run: echo ("::set-env name=TAG_NAME::" + $env:GITHUB_REF.replace('refs/tags/', ''))
64+
- if: ${{ matrix.os != 'windows-latest' }}
65+
run: echo "##[set-env name=TAG_NAME;]$(echo ${GITHUB_REF#refs/tags/})"
3166
- name: Publish Packages to Bintray
32-
run: ./gradlew -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" -Pversion="${githubRef#refs/tags/}" -PbuildNumber="${buildNumber}" bintrayUpload
33-
env:
34-
bintrayUser: ${{ secrets.bintrayUser }}
35-
bintrayKey: ${{ secrets.bintrayKey }}
36-
sonatypeUsername: ${{ secrets.sonatypeUsername }}
37-
sonatypePassword: ${{ secrets.sonatypePassword }}
38-
githubRef: ${{ github.ref }}
39-
buildNumber: ${{ github.run_number }}
67+
uses: eskatos/gradle-command-action@v1
68+
with:
69+
arguments: bintrayUpload -PbintrayUser=${{ secrets.bintrayUser }} -PbintrayKey=${{ secrets.bintrayKey }} -PsonatypeUsername=${{ secrets.sonatypeUsername }} -PsonatypePassword=${{ secrets.sonatypePassword }} -Pversion=${{ env.TAG_NAME }} -PbuildNumber=${{ github.run_number }} --stacktrace --no-daemon

0 commit comments

Comments
 (0)