From 39e2e1a5c10509d4e4bfd67653a4b4eb6120c022 Mon Sep 17 00:00:00 2001 From: curtishd <131777542+curtishd@users.noreply.github.com> Date: Tue, 9 Apr 2024 20:54:30 +0800 Subject: [PATCH] feat(Kotlin): Add the workflow file for CI check (#1251) * ci(kotlin): Add workflow file. * Update kotlin.yml --------- Co-authored-by: Yudong Jin --- .github/workflows/kotlin.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/kotlin.yml diff --git a/.github/workflows/kotlin.yml b/.github/workflows/kotlin.yml new file mode 100644 index 000000000..aedeae6f8 --- /dev/null +++ b/.github/workflows/kotlin.yml @@ -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/checkout@v4.1.2 + + - name: Build JAR + run: kotlinc codes/kotlin/**/*.kt -include-runtime -d codes/kotlin/build/test.jar