mirror of
https://github.com/krahets/hello-algo.git
synced 2026-11-02 03:05:24 +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
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
name: Zig
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
paths:
|
|
- ".github/workflows/zig.yml"
|
|
- "codes/zig/**/*.zig"
|
|
- "ja/codes/zig/**/*.zig"
|
|
- "ko/codes/zig/**/*.zig"
|
|
- "codes/zig/build.zig"
|
|
- "ja/codes/zig/build.zig"
|
|
- "ko/codes/zig/build.zig"
|
|
pull_request:
|
|
branches: ["main"]
|
|
paths:
|
|
- ".github/workflows/zig.yml"
|
|
- "codes/zig/**/*.zig"
|
|
- "ja/codes/zig/**/*.zig"
|
|
- "ko/codes/zig/**/*.zig"
|
|
- "codes/zig/build.zig"
|
|
- "ja/codes/zig/build.zig"
|
|
- "ko/codes/zig/build.zig"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
# Keep the macOS SDK compatible with Zig 0.14.1.
|
|
os: [ubuntu-latest, macos-14, windows-latest]
|
|
code-dir: ["codes/zig", "ja/codes/zig", "ko/codes/zig"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: mlugg/setup-zig@v2
|
|
with:
|
|
version: "0.14.1"
|
|
|
|
- name: Build
|
|
working-directory: ${{ matrix.code-dir }}
|
|
run: zig build
|
|
|
|
- name: Test
|
|
working-directory: ${{ matrix.code-dir }}
|
|
run: zig build test
|