From e1d963c85533e1566308467f44dcc9baaf19c3d4 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Sun, 27 Aug 2023 18:32:58 +0100 Subject: [PATCH] Make a static binary. --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9aef0ba..e75196b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,8 +20,8 @@ jobs: - name: Set up NASM uses: ilammy/setup-nasm@v1.4.0 - name: Build - run: cargo build --release - - run: mv target/release/piped-proxy piped-proxy + run: RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target x86_64-unknown-linux-gnu + - run: mv target/x86_64-unknown-linux-gnu/release/piped-proxy piped-proxy - name: Upload artifact uses: actions/upload-artifact@v3 with: