Skip to content

Commit

Permalink
Merge pull request #3046 from 1c-syntax/feature/check-package
Browse files Browse the repository at this point in the history
Проверка сборки package в develop + поддержка jdk20 для jacoco и lombok
  • Loading branch information
nixel2007 authored May 14, 2023
2 parents fdbbf14 + ed7b643 commit 6a78d1d
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/check-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Check making image

on:
push:
branches:
- develop
- feature/check-package


jobs:
build:
strategy:
fail-fast: true
matrix:
os: [windows-latest, ubuntu-latest, macOS-latest]
include:
- os: windows-latest
displayName: Windows
prefix: win
app-image: bsl-language-server
- os: ubuntu-latest
displayName: Linux
prefix: nix
app-image: bsl-language-server
- os: macOS-latest
displayName: MacOS
prefix: mac
app-image: bsl-language-server.app
runs-on: ${{ matrix.os }}
name: (${{ matrix.displayName }}) create image app version

steps:
- name: Checkout source
uses: actions/checkout@v3

- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 20
distribution: 'temurin'

- name: Build bootJar with Gradle
run: ./gradlew check build

- name: Build jpackage application image
run: python .github/scripts/build-jpackage.py ${{ matrix.prefix }} ${{ matrix.app-image }}




9 changes: 9 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ repositories {
mavenLocal()
mavenCentral()
maven(url = "https://jitpack.io")
maven(url = "https://projectlombok.org/edge-releases")
}

group = "io.github.1c-syntax"
Expand Down Expand Up @@ -132,6 +133,14 @@ dependencies {
testImplementation("org.awaitility", "awaitility", "4.2.0")
}

lombok {
version.set("edge-SNAPSHOT")
}

jacoco {
toolVersion = "0.8.10"
}

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
Expand Down

0 comments on commit 6a78d1d

Please sign in to comment.