From 6c953edc72ed7afb51ad1e320ab754a3079d6459 Mon Sep 17 00:00:00 2001 From: Chuanhong Guo Date: Thu, 29 Feb 2024 21:35:02 +0800 Subject: [PATCH] ci: build static binaries in release Signed-off-by: Chuanhong Guo --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 80604b3..7c6d2e1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,7 +43,7 @@ jobs: run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - name: Build Binary - run: cargo build --verbose --locked --release --target ${{ matrix.target }} + run: RUSTFLAGS='-C target-feature=+crt-static' cargo build --verbose --locked --release --target ${{ matrix.target }} - name: Build archive shell: bash