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"