diff --git a/.github/workflows/publish-rust.yml b/.github/workflows/publish-rust.yml index 9e57cc83..55f233d3 100644 --- a/.github/workflows/publish-rust.yml +++ b/.github/workflows/publish-rust.yml @@ -64,8 +64,6 @@ jobs: run: pnpm zx ./scripts/rust/lint.mjs "${{ inputs.package_path }}" - name: Build programs - env: - CARGO_TARGET_DIR: target/sbf run: pnpm programs:build - name: Test diff --git a/scripts/rust/build-sbf.mjs b/scripts/rust/build-sbf.mjs index c27c38cb..64a80d34 100644 --- a/scripts/rust/build-sbf.mjs +++ b/scripts/rust/build-sbf.mjs @@ -7,5 +7,4 @@ import { const [folder, ...args] = cliArguments(); const manifestPath = path.join(workingDirectory, folder, 'Cargo.toml'); -process.env.CARGO_TARGET_DIR ||= path.join(workingDirectory, 'target', 'sbf'); await $`cargo-build-sbf --manifest-path ${manifestPath} ${args}`;