Make a static binary.

This commit is contained in:
Kavin 2023-08-27 18:32:58 +01:00
parent 02b40729cb
commit e1d963c855
No known key found for this signature in database
GPG key ID: 6E4598CA5C92C41F

View file

@ -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: