From c791d311d332a6e9d8f65556ca74a64a5431e37e Mon Sep 17 00:00:00 2001 From: pandaadir05 Date: Fri, 21 Nov 2025 15:44:51 +0200 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08a3f03..84bc24b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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