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

Versioning with Reckon #329

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
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
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,25 @@ jobs:
- uses: codecov/codecov-action@v1
if: matrix.os == env.MAIN_OS && matrix.java == env.MAIN_JAVA
continue-on-error: true
native-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- name: Set up Graal
run: |
mkdir graalvm
wget -qO- 'https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-21.3.0/graalvm-ce-java17-linux-amd64-21.3.0.tar.gz' | tar xzf - --strip-components=1 -C graalvm
echo "${PWD}/graalvm/bin" >> $GITHUB_PATH
echo "JAVA_HOME=${PWD}/graalvm"
- run: sudo apt-get install -y build-essential libz-dev zlib1g-dev
- run: |
echo $LD_LIBRARY_PATH
sudo ldconfig
- run: gu install native-image
- uses: gradle/gradle-build-action@v2
with:
gradle-version: '7.3'
arguments: build --stacktrace alpha-cli-app:nativeImage
19 changes: 19 additions & 0 deletions alpha-cli-app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
plugins {
id("alpha.java-application-conventions")
id("com.github.johnrengelman.shadow") version "7.1.1"
id("org.mikeneck.graalvm-native-image") version "1.4.1"
}

dependencies {
Expand Down Expand Up @@ -71,3 +73,20 @@ tasks.create<Jar>("bundledJar") {
tasks.test {
useJUnitPlatform()
}

tasks.shadowJar {
archiveClassifier.set("shadow")
}

tasks.nativeImage {
mainClass = main
//mainClass.set(main)
executableName = "alpha"
arguments(
"--no-fallback",
"-H:Log=registerResource",
"-H:+ReportExceptionStackTraces",
//"-H:ResourceConfigurationFiles=src/main/resources/native-image/resource-config.json",
"--report-unsupported-elements-at-runtime"
)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"resources": {
"includes": [
{
"pattern": "alpha-core:/stringtemplates/aggregate-encodings.stg",
"pattern": ".*"
}
]
},
"bundles": []
}
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ plugins {
jacoco

id("com.github.kt3k.coveralls") version "2.12.0"
id("org.ajoberstar.reckon") version "0.13.1"
}

tasks.wrapper {
gradleVersion = "7.3.2"
distributionType = Wrapper.DistributionType.ALL
}

reckon {
scopeFromProp()
stageFromProp("rc")
}
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
version=0.7.0-SNAPSHOT
group=at.ac.tuwien.kr.alpha
org.gradle.warning.mode=all