fix(ci): statically build on artifacts

This commit is contained in:
Matthew Esposito 2024-11-19 12:53:36 -05:00
parent 3e1718bfc9
commit 96ebfd2d3a

View File

@ -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" run: echo "VERSION=$(cargo metadata --format-version 1 --no-deps | jq .packages[0].version -r | sed 's/^/v/')" >> "$GITHUB_OUTPUT"
- name: Build - 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 - name: Package release
run: tar czf redlib-${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release/ redlib run: tar czf redlib-${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release/ redlib