docs(course): 适配 Zig 0.16 课程代码示例 API 变更 #939
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| paths: | |
| - "**.zig" | |
| - "**.zig.zon" | |
| - "**.yml" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "**.zig" | |
| - "**.zig.zon" | |
| - "**.yml" | |
| schedule: | |
| - cron: "0 2 * * *" | |
| workflow_call: | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| version: [0.11.0, 0.12.1, 0.13.0, 0.14.0, 0.15.1, ""] | |
| fail-fast: false | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Setup Zig | |
| uses: goto-bus-stop/setup-zig@v2 | |
| with: | |
| version: ${{ matrix.version }} | |
| - uses: actions/checkout@v4 | |
| - name: Build test | |
| run: zig build |