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

[WIP] Kotlin #487

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
21 changes: 20 additions & 1 deletion .github/workflows/test_language_bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- test_java
- test_javascript
- test_julia
- test_kotlin
- test_lua
- test_perl
- test_php
Expand Down Expand Up @@ -182,7 +183,25 @@ jobs:
- name: make julia
run: |
PATH="$PATH:$PWD/julia-1.8.2/bin" make julia


test_kotlim:
name: "Test: Kotlin"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '11'

- name: Build with Kotlin
run: kotlinc HelloWorld.kt -include-runtime -d HelloWorld.jar

- name: Run Kotlin program
run: java -jar HelloWorld.jar

test_lua:
name: "Test: Lua"
runs-on: ubuntu-20.04
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ GNOLL was written to be the definitive solution to dice notation. The core has b
![Java](https://img.shields.io/badge/java-%23ED8B00.svg?style=for-the-badge&logo=java&logoColor=white)
![JavaScript](https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E)
![Julia](https://img.shields.io/badge/-Julia-9558B2?style=for-the-badge&logo=julia&logoColor=white)
![Lua](https://img.shields.io/badge/lua-%232C2D72.svg?style=for-the-badge&logo=lua&logoColor=white)
![Kotlin](https://img.shields.io/badge/kotlin-%237F52FF.svg?style=for-the-badge&logo=kotlin&logoColor=white)![Lua](https://img.shields.io/badge/lua-%232C2D72.svg?style=for-the-badge&logo=lua&logoColor=white)
![Perl](https://img.shields.io/badge/perl-%2339457E.svg?style=for-the-badge&logo=perl&logoColor=white)
![PHP](https://img.shields.io/badge/php-%23777BB4.svg?style=for-the-badge&logo=php&logoColor=white)
![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)
Expand Down Expand Up @@ -137,6 +137,7 @@ We use [SemVer](http://semver.org/) for versioning. For the versions available,
## 🤹 Authors / Contributers / Attributions

- **Ian Hunter** - *Main Developer* - [Ianfhunter](https://github.com/ianfhunter/)
- **Michael McDermott** - *JavaScript Browser Version* -[michaeljmcd](https://github.com/michealjmcd/)

See also the list of [contributors](https://github.com/ianfhunter/gnoll/contributors) who participated in this project.

Expand Down
3 changes: 3 additions & 0 deletions src/kotlin/main.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fun main() {

Check warning on line 1 in src/kotlin/main.kt

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/kotlin/main.kt#L1

The function main is missing documentation.
println("Hello, Gnoll")
}
3 changes: 3 additions & 0 deletions src/kotlin/target.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kotlin:
kotlinc GNOLLexample.kt -include-runtime -d GNOLLKT.jar
java -jar GNOLLKT.jar
Loading