mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-24 03:46:28 +08:00
feat(Kotlin): Add the workflow file for CI check (#1251)
* ci(kotlin): Add workflow file. * Update kotlin.yml --------- Co-authored-by: Yudong Jin <krahets@163.com>
This commit is contained in:
parent
78f71eeacb
commit
39e2e1a5c1
1 changed files with 24 additions and 0 deletions
24
.github/workflows/kotlin.yml
vendored
Normal file
24
.github/workflows/kotlin.yml
vendored
Normal file
|
@ -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
|
Loading…
Reference in a new issue