Skip to content

Commit

Permalink
WIP kotlin matrix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg committed May 12, 2023
1 parent 711e724 commit 08bde88
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/ci-kotlin-matrix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Kotlin Matrix CI
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * SAT"
push: # TODO: DROP
branches:
- kotlin-matrix-workflow

jobs:
build:
name: K2=${{ matrix.k2 }} | ${{ matrix.kotlinVersion }} | ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
kotlinVersion: [
'1.8.21',
'[1.9.0-Beta,1.9.0-Beta-9999[',
'[1.9.20-dev,1.9.20-dev-9999['
]
k2: [ 'true', 'false' ]
env:
KOTLIN_VERSION_OVERRIDE: ${{ matrix.kotlinVersion }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-gradle
with:
cache-disabled: true

- name: Compile sources
uses: gradle/gradle-build-action@v2
with:
arguments: build --scan --continue -Pkotlin.experimental.tryK2=${{ matrix.k2 }} -Pskip.test -Pskip.link

- name: Publish to Maven Local (compile intermediate source sets)
uses: gradle/gradle-build-action@v2
with:
arguments: publishToMavenLocal -Pkotlin.experimental.tryK2=${{ matrix.k2 }} --scan --continue

- name: Build rsocket-core
uses: gradle/gradle-build-action@v2
with:
arguments: rsocket-core:build --scan --continue -Pkotlin.experimental.tryK2=${{ matrix.k2 }}

- name: Link native binaries
uses: gradle/gradle-build-action@v2
with:
arguments: build --scan --continue -Pkotlin.experimental.tryK2=${{ matrix.k2 }} -Pskip.test

- name: Build everything
uses: gradle/gradle-build-action@v2
with:
arguments: build --scan --continue -Pkotlin.experimental.tryK2=${{ matrix.k2 }}

0 comments on commit 08bde88

Please sign in to comment.