🦄 refactor: Updated Javet to compileOnly #2
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: Build | |
concurrency: | |
group: build_${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
paths-ignore: | |
- "**.md" | |
- "docs/**" | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "**.md" | |
- "docs/**" | |
env: | |
JAVET_BUDDY_VERSION: 0.2.0 | |
jobs: | |
build_jar: | |
name: Build Jar | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
- name: Setup JDK 8 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: corretto | |
java-version: 8 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
gradle-version: 8.5 | |
- name: Build the Artifact | |
run: | | |
gradle build generatePomFileForGeneratePomPublication | |
- name: Upload the Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: javet-buddy-${{ env.JAVET_BUDDY_VERSION }} | |
path: | | |
build/libs/*.jar | |
build/libs/*.pom |