Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redefines the Gradle build strategy #174

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 27 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15

strategy:
matrix:
platform: [ jvm, js, linuxX64, macosX64, mingwX64 ]

steps:
- uses: actions/checkout@v3
with:
Expand All @@ -23,10 +27,30 @@ jobs:
distribution: 'zulu'
java-version: 19

- name: build
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build --full-stacktrace

- name: Build Multi-platform Modules
run: |
./gradlew \
:xef-core:${{ matrix.platform }}Test \
:xef-filesystem:${{ matrix.platform }}Test \
:xef-tokenizer:${{ matrix.platform }}Test \
:xef-kotlin:${{ matrix.platform }}Test

- name: Build Single-platform Modules
if: matrix.platform == 'jvm'
run: |
./gradlew \
:xef-lucene:build \
:xef-pdf:build \
:xef-postgresql:build \
:xef-sql:build \
:xef-kotlin-examples:build \
:kotlin-loom:build \
:xef-scala-examples:build \
:xef-scala:build \
:xef-scala-cats:build

- name: Upload reports
if: failure()
Expand Down