mirror of
https://github.com/zap-proto/rust.git
synced 2026-10-30 15:04:23 +00:00
Add a release workflow triggered on zapc-v* tags that builds the zapc schema-compiler binary for darwin/linux × arm64/x64, uploads tarballs to a GitHub release, and publishes the @zap-proto/zapc npm wrapper (which downloads the matching platform binary on install). Mirrors the proven zap-proto/zapd setup.
8 lines
324 B
JavaScript
8 lines
324 B
JavaScript
#!/usr/bin/env node
|
|
// Thin launcher: exec the platform binary fetched by install.js.
|
|
const { spawnSync } = require('child_process');
|
|
const path = require('path');
|
|
const bin = path.join(__dirname, 'zapc');
|
|
const r = spawnSync(bin, process.argv.slice(2), { stdio: 'inherit' });
|
|
process.exit(r.status == null ? 1 : r.status);
|