Skip to content

Commit

Permalink
feat(Kotlin): Add the workflow file for CI check (krahets#1251)
Browse files Browse the repository at this point in the history
* ci(kotlin): Add workflow file.

* Update kotlin.yml

---------

Co-authored-by: Yudong Jin <[email protected]>
  • Loading branch information
curtishd and krahets authored Apr 9, 2024
1 parent 78f71ee commit 39e2e1a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/kotlin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Kotlin

on:
push:
branches: [ "main" ]
paths: ["codes/kotlin/**/*.kt"]
pull_request:
branches: [ "main" ]
paths: ["codes/kotlin/**/*.kt"]
workflow_dispatch:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]

name: Kotlin on ${{ matrix.os }}
steps:
- uses: actions/[email protected]

- name: Build JAR
run: kotlinc codes/kotlin/**/*.kt -include-runtime -d codes/kotlin/build/test.jar

0 comments on commit 39e2e1a

Please sign in to comment.