From 2d2030771fe02b0241a3ff3ae5727df15d094b49 Mon Sep 17 00:00:00 2001 From: Jakub Majak Date: Tue, 20 Dec 2022 16:16:14 +0100 Subject: [PATCH] Fix Linux binary to work with various Linux distros (#42) --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5e928c4..115f8d6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,8 +42,10 @@ jobs: - name: Build for release linux run: | - cargo build --release - mv target/release bin/ + rustup target add x86_64-unknown-linux-musl + apt-get install musl-tools + cargo build --release --target=x86_64-unknown-linux-musl + mv target/x86_64-unknown-linux-musl/release bin/ tar -czvf protofetch_linux_amd64.tar.gz bin/protofetch - name: Upload release