Files
hello-algo/.github/workflows/kotlin.yml
Yudong Jin 7257641e0e Retranslate the complete Japanese online edition from Chinese (#2008)
* Retranslate the complete Japanese online edition from Chinese

* Fit Japanese homepage labels and localize heading permalinks

* Point Japanese contribution instructions to the Japanese preview

* Replace locale conditionals with multilingual UI tables
2026-10-30 02:12:26 +08:00

36 lines
901 B
YAML

name: Kotlin
on:
push:
branches: ["main"]
paths:
- ".github/workflows/kotlin.yml"
- "codes/kotlin/**/*.kt"
- "en/codes/kotlin/**/*.kt"
- "ja/codes/kotlin/**/*.kt"
- "ko/codes/kotlin/**/*.kt"
pull_request:
branches: ["main"]
paths:
- ".github/workflows/kotlin.yml"
- "codes/kotlin/**/*.kt"
- "en/codes/kotlin/**/*.kt"
- "ja/codes/kotlin/**/*.kt"
- "ko/codes/kotlin/**/*.kt"
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
code-dir: ["codes/kotlin", "en/codes/kotlin", "ja/codes/kotlin", "ko/codes/kotlin"]
name: Kotlin on ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Build JAR
run: kotlinc ${{ matrix.code-dir }}/**/*.kt -include-runtime -d ${{ matrix.code-dir }}/build/test.jar