mirror of
https://github.com/krahets/hello-algo.git
synced 2026-11-15 04:38:54 +08:00
* 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
36 lines
901 B
YAML
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
|