Skip to content

Commit

Permalink
try to build without cross
Browse files Browse the repository at this point in the history
  • Loading branch information
salman1993 committed Jan 16, 2025
1 parent 30f1aa4 commit e546021
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,23 @@ jobs:
with:
toolchain: stable

# Only run this step on ubuntu-latest
- name: Install OpenSSL dev on Ubuntu
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config

- name: Build CLI
run: |
export TARGET="${{ matrix.architecture }}-${{ matrix.target-suffix }}"
rustup target add "${TARGET}"
cargo install cross --git https://github.com/cross-rs/cross
## Cross-compiling Goose CLI is not working, so we're building natively
# cargo install cross --git https://github.com/cross-rs/cross
# Only 'goose' binary is needed for CLI release, skipping 'goosed' here
CROSS_NO_WARNINGS=0 cross build --release --target ${TARGET} -p goose-cli
# CROSS_NO_WARNINGS=0 cross build --release --target ${TARGET} -p goose-cli
# Trying without cross for now
cargo build --release --target ${TARGET} -p goose-cli
cd target/${TARGET}/release
tar -cjf goose-${TARGET}.tar.bz2 goose
echo "ARTIFACT=target/${TARGET}/release/goose-${TARGET}.tar.bz2" >> $GITHUB_ENV
Expand Down

0 comments on commit e546021

Please sign in to comment.