Skip to content

Commit

Permalink
🐎 ci: Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
caoccao committed Sep 30, 2024
1 parent 990f2d7 commit 3396df6
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 2 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
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.1.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
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# JavetBuddy

JavetBuddy is Javet + ByteBuddy. JavetBuddy enhances JVM via bytecode by JavaScript.
[![Maven Central](https://img.shields.io/maven-central/v/com.caoccao.javet/JavetBuddy?style=for-the-badge)](https://central.sonatype.com/artifact/com.caoccao.javet/JavetBuddy) [![Discord](https://img.shields.io/discord/870518906115211305?label=join%20our%20Discord&style=for-the-badge)](https://discord.gg/R4vvKU96gw)

## Usage
[![Build](https://github.com/caoccao/JavetBuddy/actions/workflows/build.yml/badge.svg)](https://github.com/caoccao/JavetBuddy/actions/workflows/build.yml)

JavetBuddy is [Javet](https://github.com/caoccao/Javet) + [ByteBuddy](https://bytebuddy.net/). JavetBuddy enhances JVM via bytecode by JavaScript.

## Documentation

* [Access the Whole JVM](https://www.caoccao.com/Javet/tutorial/advanced/access_the_whole_jvm.html)
* [Dynamic: Anonymous Object for Class](https://www.caoccao.com/Javet/reference/converters/proxy_converter.html#dynamic-anonymous-object-for-class)
* [Release Notes](docs/release_notes.md)

## License

Expand Down

0 comments on commit 3396df6

Please sign in to comment.