mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-24 21:19:37 +00:00
ci: build binaries for riscv64-linux-musl, loongarch64-linux-{musl,gnu} (#1014)
* dev: patch cargo-dist * dev: patch cargo-dist 2
This commit is contained in:
parent
83fe1e7987
commit
b1bb3196b7
3 changed files with 14 additions and 4 deletions
|
|
@ -3,6 +3,9 @@ import fs from 'fs';
|
|||
|
||||
const versionToUpload = process.argv[2];
|
||||
|
||||
const DIST_CMD = "dist";
|
||||
// const DIST_CMD = "cargo run --manifest-path ../cargo-dist/cargo-dist/Cargo.toml --bin dist --";
|
||||
|
||||
const run = (command) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
exec(command, (error, stdout, stderr) => {
|
||||
|
|
@ -34,7 +37,10 @@ const main = async () => {
|
|||
if (fs.existsSync('target/distrib/dist-manifest.json')) {
|
||||
fs.unlinkSync('target/distrib/dist-manifest.json');
|
||||
}
|
||||
const distManifest = await run('dist host --steps=upload --steps=release --output-format=json');
|
||||
|
||||
await run(DIST_CMD + ' generate');
|
||||
|
||||
const distManifest = await run(DIST_CMD + ' host --steps=upload --steps=release --output-format=json');
|
||||
const distData = JSON.parse(distManifest);
|
||||
const body = distData.announcement_github_body;
|
||||
// write to file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue