Merge branch 'no-redisson-shutdown' into 'master' #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create and publish Spring Boot jars and GraalVm native images | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build-artifacts: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up GraalVm | |
uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: '21' | |
distribution: 'graalvm-community' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build jars and native images with Gradle | |
run: | | |
export LC_ALL=C.UTF-8 | |
export LANG=C.UTF-8 | |
export NATIVE_IMAGE_CONFIG_FILE="$(pwd)/native-image.properties" | |
echo 'NativeImageArgs = -J-Xmx14G -H:+AddAllCharsets -J-Dfile.encoding=UTF-8' > $NATIVE_IMAGE_CONFIG_FILE | |
./gradlew build nativeCompile -x test | |
- name: Release Jars and native images | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
encore-web/build/libs/encore-web*boot.jar | |
encore-web/build/native/nativeCompile/encore-web | |
encore-worker/build/libs/encore-worker*boot.jar | |
encore-worker/build/native/nativeCompile/encore-worker | |