Skip to content

ci kotlin matrix

ci kotlin matrix #42

name: Kotlin Matrix CI
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * SAT"
push:
branches:
- ci-kotlin-matrix
jobs:
build:
name: K2=${{ matrix.kotlin-use-k2 }} ${{ matrix.kotlin-version }} P=${{ matrix.patch-file }}
strategy:
fail-fast: false
max-parallel: 2
matrix:
kotlin-version: [
'', # empty means a current project version
'[1.9.0-Beta,1.9.0-Beta-9999[',
'[1.9.20-dev,1.9.20-dev-9999['
]
kotlin-use-k2: [ 'false', 'true' ]
patch-file: [ '', './.github/patches/K2_workaround.patch' ]
exclude:
# patch is only needed for K2
- kotlin-use-k2: 'false'
patch-file: ./.github/patches/K2_workaround.patch
# it's not possible to use K2 with kotlin 1.8.21
- kotlin-use-k2: 'true'
kotlin-version: ''
uses: ./.github/workflows/run-tests.yml
with:
kotlin-version: ${{ matrix.kotlin-version }}
kotlin-use-k2: ${{ matrix.kotlin-use-k2 }}
patch-file: ${{ matrix.patch-file }}