Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
openssl
Browse files Browse the repository at this point in the history
  • Loading branch information
tiero committed Jun 14, 2024
1 parent 6df746e commit 344c2a0
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ jobs:
sudo apt-get update
sudo apt-get install -y clang protobuf-compiler libssl-dev
if [ "${{ matrix.arch }}" == "arm64" ]; then
sudo apt-get install -y gcc-aarch64-linux-gnu protobuf-compiler libssl-dev:arm64
export OPENSSL_DIR=/usr/aarch64-linux-gnu
sudo dpkg --add-architecture arm64
sudo apt-get update
sudo apt-get install -y clang gcc-aarch64-linux-gnu protobuf-compiler libssl-dev
sudo apt-get install -y libssl-dev:arm64
fi
- name: Install dependencies on macOS
Expand All @@ -87,9 +89,22 @@ jobs:
- name: Add Rust targets
run: rustup target add ${{ matrix.target }}


- name: Set OpenSSL directory for arm64
if: runner.os == 'Linux' && matrix.arch == 'arm64'
run: echo "OPENSSL_DIR=/usr/lib/aarch64-linux-gnu" >> $GITHUB_ENV

- name: Set OpenSSL directory on macOS
if: runner.os == 'macOS'
run: echo "OPENSSL_DIR=$(brew --prefix openssl)" >> $GITHUB_ENV


- name: Cross compile
env:
OPENSSL_DIR: ${{ env.OPENSSL_DIR }}
run: cross build --release --target ${{ matrix.target }}


- name: Archive binaries
run: |
mkdir -p dist
Expand Down

0 comments on commit 344c2a0

Please sign in to comment.