From fac2947b930c71ddb9d56e978eaa59b98542ce99 Mon Sep 17 00:00:00 2001 From: "Natalie B." <22222885+espeon@users.noreply.github.com> Date: Tue, 12 Aug 2025 22:35:11 -0500 Subject: [PATCH] Add CROSS_NO_WARNINGS for cross-compilation --- .github/workflows/ci.yml | 1 + Cross.toml | 14 ++++++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 59e59e3..10f2f59 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -105,6 +105,7 @@ jobs: rustup target add ${{ matrix.target }} # Set up environment for cross-compilation echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV + echo "CROSS_NO_WARNINGS=0" >> $GITHUB_ENV - name: Cross-compile services run: | diff --git a/Cross.toml b/Cross.toml index 0a0706b..13f0c2e 100644 --- a/Cross.toml +++ b/Cross.toml @@ -10,11 +10,9 @@ passthrough = [ image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:main" [target.aarch64-unknown-linux-gnu.env] -passthrough = ["CARGO_HOME", "CARGO_TARGET_DIR", "SQLX_OFFLINE"] -# Allow cross-compilation of native dependencies -PKG_CONFIG_ALLOW_CROSS = "1" -# Use static linking to reduce runtime dependencies -RUSTFLAGS = "-C target-feature=+crt-static -C link-arg=-s" -# Disable problematic features that might require OpenSSL -CC_aarch64_unknown_linux_gnu = "aarch64-linux-gnu-gcc" -CXX_aarch64_unknown_linux_gnu = "aarch64-linux-gnu-g++" +passthrough = [ + "CARGO_HOME", + "CARGO_TARGET_DIR", + "SQLX_OFFLINE", + "PKG_CONFIG_ALLOW_CROSS", +] -- 2.51.2