From e7519dcd2f663ee90c7b10edcd32417ccd2cfd63 Mon Sep 17 00:00:00 2001 From: "Christopher L. Crutchfield" Date: Fri, 15 Nov 2024 16:45:13 -0800 Subject: [PATCH] fix: construct cargo toml --- .github/workflows/rust.yml | 5 +++++ Cargo.toml | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 702d8ab..1e5fe4e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -20,6 +20,11 @@ jobs: run: | sudo apt-get update sudo apt-get install -y gcc-aarch64-linux-gnu + - name: Setup Cargo Config + run: | + mkdir -p .cargo + echo "[target.aarch64-unknown-linux-gnu]" >> ./.cargo/config.toml + echo 'linker = "aarch64-linux-gnu-gcc"' >> ./.cargo/config.toml - name: Install Rust Toolchains run: rustup target add x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu - name: Run tests diff --git a/Cargo.toml b/Cargo.toml index 18ea8fc..6676722 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,5 +5,3 @@ edition = "2021" [dependencies] -[target.aarch64-unknown-linux-gnu] -linker = "aarch64-linux-gnu-gcc"