fix: resolve release build issues

- Enable vendored OpenSSL for musl target to avoid cross-compilation issues
- Fix archive creation to include both ghost-cli and ghost-tui binaries
- Set OPENSSL_STATIC=1 for all release builds
This commit is contained in:
pandaadir05
2025-11-21 15:44:51 +02:00
parent 9faba5157c
commit c791d311d3

View File

@@ -231,6 +231,9 @@ jobs:
- name: Build release
run: cargo build --release --target ${{ matrix.target }} --no-default-features
env:
OPENSSL_STATIC: 1
OPENSSL_VENDORED: ${{ matrix.target == 'x86_64-unknown-linux-musl' && '1' || '0' }}
- name: Create archive
shell: bash
@@ -238,10 +241,10 @@ jobs:
VERSION="${GITHUB_REF#refs/tags/v}"
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
ARCHIVE="ghost-${VERSION}-${{ matrix.target }}.zip"
7z a "${ARCHIVE}" ./target/${{ matrix.target }}/release/ghost.exe
7z a "${ARCHIVE}" ./target/${{ matrix.target }}/release/ghost-cli.exe ./target/${{ matrix.target }}/release/ghost-tui.exe
else
ARCHIVE="ghost-${VERSION}-${{ matrix.target }}.tar.gz"
tar czf "${ARCHIVE}" -C ./target/${{ matrix.target }}/release ghost
tar czf "${ARCHIVE}" -C ./target/${{ matrix.target }}/release ghost-cli ghost-tui
fi
echo "ARCHIVE=${ARCHIVE}" >> $GITHUB_ENV