diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c28c79f5a58..8f65c29f0f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -375,7 +375,7 @@ jobs: - name: Additional Check (for packaging) if: startsWith(matrix.os, 'ubuntu') - run: cargo check --no-default-features --features use-sodiumoxide + run: cargo check --profile ci-rust --no-default-features --features use-sodiumoxide - name: Test rust codebase if: steps.rust-changes.outputs.run == 'true' diff --git a/build.py b/build.py index c529cc2f35a..3cc127c46a9 100644 --- a/build.py +++ b/build.py @@ -64,11 +64,11 @@ def build(): # native module and discard the rest ! maturin_build_profile = "--profile=" + os.environ.get("CARGO_PROFILE", DEFAULT_CARGO_PROFILE) - maturin_build_features = os.environ.get("CARGO_EXTRA_ARGS", "") + maturin_build_extra_args = os.environ.get("CARGO_EXTRA_ARGS", "") with tempfile.TemporaryDirectory() as distdir: run( - f"maturin build {maturin_build_profile} {maturin_build_features} --interpreter {PYTHON_EXECUTABLE_PATH} --out {distdir}" + f"maturin build {maturin_build_profile} {maturin_build_extra_args} --interpreter {PYTHON_EXECUTABLE_PATH} --out {distdir}" ) outputs = list(pathlib.Path(distdir).iterdir())