Skip to content

fix(jni): 拦截负值参数导致的边界崩溃 #23

fix(jni): 拦截负值参数导致的边界崩溃

fix(jni): 拦截负值参数导致的边界崩溃 #23

Workflow file for this run

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/