From 081eeb0c256706c19b148eef775a7027ea828b64 Mon Sep 17 00:00:00 2001 From: Alexander Ioffe Date: Thu, 1 Feb 2024 20:39:49 -0500 Subject: [PATCH] OS Matrix for CI --- .github/workflows/ci.yaml | 5 ++++- .github/workflows/release.yaml | 5 ++++- pprint-kotlin-core/build.gradle.kts | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0fdfaee..fc5090b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,7 +4,10 @@ on: [pull_request, push] jobs: build: - runs-on: [ubuntu-latest, macOS-latest, windows-latest] + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-latest, macOS-latest, windows-latest ] steps: - uses: actions/checkout@v3 - name: Set up JDK 11 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b5dee83..d92f6c3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,7 +20,10 @@ jobs: release: needs: [create-staging-repository] - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-latest, macOS-latest, windows-latest ] env: SONATYPE_REPOSITORY_ID: ${{ needs.create_staging_repository.outputs.repository-id }} SONATYPE_USERNAME: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEPASSWORD }} diff --git a/pprint-kotlin-core/build.gradle.kts b/pprint-kotlin-core/build.gradle.kts index afcb718..5b99737 100644 --- a/pprint-kotlin-core/build.gradle.kts +++ b/pprint-kotlin-core/build.gradle.kts @@ -18,6 +18,8 @@ kotlin { } linuxX64() + macosX64() + mingwX64() js { browser()