diff --git a/dist/build-crates-artifacts-main.js b/dist/build-crates-artifacts-main.js index 9b040e3..21a15a5 100644 --- a/dist/build-crates-artifacts-main.js +++ b/dist/build-crates-artifacts-main.js @@ -128433,6 +128433,7 @@ async function main(input) { command_sh(`git clone --recursive --branch ${input.branch} --single-branch ${remote}`); const crossContents = await promises_.readFile(external_path_.join(repo, "Cross.toml"), "utf-8"); const crossManifest = parse(crossContents); + command_sh(`rustup target add ${input.target}`); if (input.target in crossManifest.target) { command_sh(`cross build --release --bins --lib --target ${input.target}`, { cwd: repo, diff --git a/dist/build-crates-debian-main.js b/dist/build-crates-debian-main.js index 64e5449..b211132 100644 --- a/dist/build-crates-debian-main.js +++ b/dist/build-crates-debian-main.js @@ -128430,6 +128430,7 @@ async function main(input) { const repo = input.repo.split("/")[1]; const remote = `https://${input.githubToken}@github.com/${input.repo}.git`; sh(`git clone --recursive --branch ${input.branch} --single-branch ${remote}`); + sh(`rustup target add ${input.target}`); sh(`cross build --release --bins --lib --target ${input.target}`, { cwd: repo, }); diff --git a/src/build-crates-artifacts.ts b/src/build-crates-artifacts.ts index a5b87f0..1ee5f1c 100644 --- a/src/build-crates-artifacts.ts +++ b/src/build-crates-artifacts.ts @@ -49,6 +49,8 @@ export async function main(input: Input) { const crossContents = await fs.readFile(path.join(repo, "Cross.toml"), "utf-8"); const crossManifest = toml.parse(crossContents) as CrossManifest; + sh(`rustup target add ${input.target}`); + if (input.target in crossManifest.target) { sh(`cross build --release --bins --lib --target ${input.target}`, { cwd: repo, diff --git a/src/build-crates-debian.ts b/src/build-crates-debian.ts index 78964d9..ed80439 100644 --- a/src/build-crates-debian.ts +++ b/src/build-crates-debian.ts @@ -43,6 +43,8 @@ export async function main(input: Input) { const remote = `https://${input.githubToken}@github.com/${input.repo}.git`; sh(`git clone --recursive --branch ${input.branch} --single-branch ${remote}`); + sh(`rustup target add ${input.target}`); + sh(`cross build --release --bins --lib --target ${input.target}`, { cwd: repo, });