Skip to content
Open
Show file tree
Hide file tree
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
36 changes: 29 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,42 @@

name: Build

on: [push]
on:

push:
branches: [ "main" ]

pull_request:
branches: [ "main" ]

jobs:

build:
runs-on: ubuntu-latest
strategy:
matrix:
config: [
{ target: android, os: ubuntu-latest, tasks: testDebugUnitTest testReleaseUnitTest, continueOnError: false },
{ target: apple, os: macos-latest, tasks: iosX64Test iosSimulatorArm64Test macosX64Test macosArm64Test tvosX64Test tvosSimulatorArm64Test watchosX64Test watchosSimulatorArm64Test, continueOnError: false },
{ target: windows, os: windows-latest, tasks: windowsTest, continueOnError: false },
{ target: linux, os: ubuntu-latest, tasks: linuxTest, continueOnError: false }
]
runs-on: ${{ matrix.config.os }}
name: Build ${{ matrix.config.target }}

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11 for x64

- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
architecture: x64
java-version: '17'
distribution: 'temurin'

- name: Build
uses: gradle/gradle-build-action@v2
#continue-on-error: ${{ matrix.config.continueOnError }}
with:
arguments: build test

#- name: Test ${{ matrix.config.target }} targets
# continue-on-error: ${{ matrix.config.continueOnError }}
# run: ./gradlew ${{ matrix.config.tasks }}
2 changes: 1 addition & 1 deletion kompack-base/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {

kotlin {
jvm {
jvmToolchain(8) // Java8 minimum ok?
// take what u get jvmToolchain(11) // Java8 minimum ok?
withJava()
testRuns["test"].executionTask.configure {
useJUnitPlatform()
Expand Down
2 changes: 1 addition & 1 deletion kompack-kotlin-serialization/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {

kotlin {
jvm {
jvmToolchain(8) // Java8 minimum ok?
// take what you get jvmToolchain(11) // Java8 minimum ok?
withJava()
testRuns["test"].executionTask.configure {
useJUnitPlatform()
Expand Down
2 changes: 1 addition & 1 deletion testsuite/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {

kotlin {
jvm {
jvmToolchain(8) // Java8 minimum ok?
// jvmToolchain(8) // Java8 minimum ok?
withJava()
testRuns["test"].executionTask.configure {
useJUnitPlatform()
Expand Down