Skip to content

Logback backend for kotlin-logging #1058

Logback backend for kotlin-logging

Logback backend for kotlin-logging #1058

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
validation:
name: "Validate Gradle Wrapper"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v3
build:
name: Build on ${{ matrix.os.runner }}
runs-on: ${{ matrix.os.runner }}
defaults:
run:
shell: ${{ matrix.os.shell }}
strategy:
fail-fast: false
matrix:
os:
- runner: macos-latest
shell: bash
- runner: windows-latest
shell: msys2 {0}
- runner: ubuntu-latest
shell: bash
steps:
- uses: msys2/setup-msys2@v2
if: ${{ runner.os == 'Windows' }}
with:
msystem: MINGW64
update: true
path-type: inherit
install: >-
tar
make
mingw-w64-x86_64-gcc
mingw-w64-x86_64-cmake
mingw-w64-x86_64-extra-cmake-modules
mingw64/mingw-w64-x86_64-cyrus-sasl
- uses: actions/checkout@v4
- name: Restore native cache
id: cache-native
uses: actions/[email protected]
with:
path: |
scripts/build
key: ${{ runner.os }}-native-${{ hashFiles('./scripts/*') }}
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Restore Gradle cache
id: cache-gradle
uses: actions/[email protected]
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.gradle/yarn
~/.gradle/nodejs
~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle-
- name: Gradle Build
run: ./gradlew clean build spotlessCheck --stacktrace