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