* Updated readme, enabled automatc testing * Snapshot support * Release CI support Co-authored-by: Salomon BRYS <salomon@kodein.net>
72 lines
2.3 KiB
YAML
72 lines
2.3 KiB
YAML
name: Publish snapshot
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'snapshot/*'
|
|
|
|
jobs:
|
|
|
|
publish-ios:
|
|
name: Publish iOS native
|
|
runs-on: macOS-latest
|
|
steps:
|
|
- name: Check out
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: 'true'
|
|
- name: Cached Konan
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/.konan
|
|
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
|
|
restore-keys: ${{ runner.os }}-konan-
|
|
- name: Install automake
|
|
run: brew install automake
|
|
- name: Set up JDK 11
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 11
|
|
- name: Check
|
|
uses: eskatos/gradle-command-action@v1
|
|
with:
|
|
wrapper-cache-enabled: true
|
|
arguments: iosX64Test
|
|
- name: Publish
|
|
uses: eskatos/gradle-command-action@v1
|
|
env:
|
|
BINTRAY_USER: ${{ secrets.bintray_user }}
|
|
BINTRAY_APIKEY: ${{ secrets.bintray_apikey }}
|
|
with:
|
|
arguments: publishIosArm64PublicationToBintrayRepository publishIosX64PublicationToBintrayRepository -PsnapshotNumber=${{ github.run_number }} -PgitRef=${{ github.ref }} -PgitSha=${{ github.sha }}
|
|
|
|
publish:
|
|
name: Publish JVM & Linux native
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: 'true'
|
|
- name: Cached Konan
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/.konan
|
|
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
|
|
restore-keys: ${{ runner.os }}-konan-
|
|
- name: Set up JDK 11
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 11
|
|
- name: Check
|
|
uses: eskatos/gradle-command-action@v1
|
|
with:
|
|
wrapper-cache-enabled: true
|
|
arguments: check
|
|
- name: Publish
|
|
uses: eskatos/gradle-command-action@v1
|
|
env:
|
|
BINTRAY_USER: ${{ secrets.bintray_user }}
|
|
BINTRAY_APIKEY: ${{ secrets.bintray_apikey }}
|
|
with:
|
|
arguments: publishAllPublicationsToBintrayRepository -PsnapshotNumber=${{ github.run_number }} -PgitRef=${{ github.ref }} -PgitSha=${{ github.sha }} |