fix(jni): 拦截负值参数导致的边界崩溃 #23
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: Build | |
| on: | |
| push: | |
| branches: [dev] | |
| pull_request: | |
| branches: [dev] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| target: x86_64-linux | |
| - os: windows-latest | |
| target: x86_64-windows-gnu | |
| - os: macos-latest | |
| target: aarch64-macos | |
| - os: macos-15 | |
| target: x86_64-macos | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - uses: jdx/mise-action@v4 | |
| - name: Configure Xcode | |
| if: runner.os == 'macOS' | |
| run: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer | |
| - name: Build | |
| run: zig build -Dtarget=${{ matrix.target }} -Doptimize=ReleaseSmall | |
| - name: Test | |
| run: zig build test -Dtarget=${{ matrix.target }} -Doptimize=ReleaseSmall | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: zmusic-${{ matrix.target }} | |
| path: | | |
| zig-out/bin/ | |
| zig-out/lib/ | |