From 1c8c919c572ccd75ab8e28f1cb982e496265c83d Mon Sep 17 00:00:00 2001
From: Afonso Jorge Ramos <afonsojorgeramos@gmail.com>
Date: Wed, 6 Mar 2024 00:27:45 +0000
Subject: [PATCH] chore: testing diff target

---
 .github/workflows/release.yml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 8130dec..61222cf 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -16,7 +16,7 @@ jobs:
       - name: Install Rust
         uses: dtolnay/rust-toolchain@stable
         with:
-          targets: "aarch64-unknown-linux-musl, x86_64-unknown-linux-musl"
+          targets: "aarch64-unknown-linux-gnu, x86_64-unknown-linux-musl"
 
       - name: Build amd64
         run: cargo build --release
@@ -26,15 +26,15 @@ jobs:
           mv target/release/discrakt target/release/discrakt_amd64
           chmod +x target/release/discrakt_amd64
 
+      - name: Install compiler tools (as we're cross-compiling)
+        run: sudo apt install -y gcc-aarch64-linux-gnu
+
       - name: Build arm64
-        run: |
-          export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-gnu-gcc
-          export CC=aarch64-linux-gnu-gcc
-          cargo build --release --target=aarch64-unknown-linux-musl
+        run: cargo build --release --target=aarch64-unknown-linux-gnu
 
       - name: Prepare arm64 Binary
         run: |
-          mv target/aarch64-unknown-linux-musl/release/discrakt target/release/discrakt_arm64
+          mv target/aarch64-unknown-linux-gnu/release/discrakt target/release/discrakt_arm64
           chmod +x target/release/discrakt_arm64
 
       - name: Upload binaries