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