From 96ebfd2d3a6d2b7c45c6cdf7dfc65140d2288747 Mon Sep 17 00:00:00 2001 From: Matthew Esposito Date: Tue, 19 Nov 2024 12:53:36 -0500 Subject: [PATCH] fix(ci): statically build on artifacts --- .github/workflows/build-artifacts.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-artifacts.yaml b/.github/workflows/build-artifacts.yaml index 673ef54..9dd94c9 100644 --- a/.github/workflows/build-artifacts.yaml +++ b/.github/workflows/build-artifacts.yaml @@ -55,7 +55,7 @@ jobs: run: echo "VERSION=$(cargo metadata --format-version 1 --no-deps | jq .packages[0].version -r | sed 's/^/v/')" >> "$GITHUB_OUTPUT" - name: Build - run: cargo build --release --target ${{ matrix.target }} + run: RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target ${{ matrix.target }} - name: Package release run: tar czf redlib-${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release/ redlib