diff --git a/.github/workflows/test_language_bindings.yml b/.github/workflows/test_language_bindings.yml index 06f1de288..1ad161409 100644 --- a/.github/workflows/test_language_bindings.yml +++ b/.github/workflows/test_language_bindings.yml @@ -21,6 +21,7 @@ jobs: - test_java - test_javascript - test_julia + - test_kotlin - test_lua - test_perl - test_php @@ -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 diff --git a/README.md b/README.md index f109592ea..9b8f2583a 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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. diff --git a/src/kotlin/main.kt b/src/kotlin/main.kt new file mode 100644 index 000000000..6f5ab1fa8 --- /dev/null +++ b/src/kotlin/main.kt @@ -0,0 +1,3 @@ +fun main() { + println("Hello, Gnoll") +} diff --git a/src/kotlin/target.mk b/src/kotlin/target.mk new file mode 100644 index 000000000..6fd08e311 --- /dev/null +++ b/src/kotlin/target.mk @@ -0,0 +1,3 @@ +kotlin: + kotlinc GNOLLexample.kt -include-runtime -d GNOLLKT.jar + java -jar GNOLLKT.jar