Skip to content

Commit

Permalink
openssl problem is fixed for ubuntu-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkerulusoy authored Dec 10, 2024
1 parent 53bc652 commit b7a858a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,34 @@ jobs:
with:
targets: ${{ matrix.target }}

- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev
- name: Install cross-compilation dependencies
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu
sudo apt-get install -y libssl-dev:arm64
echo "OPENSSL_DIR=/usr/aarch64-linux-gnu" >> $GITHUB_ENV
echo "OPENSSL_INCLUDE_DIR=/usr/include/aarch64-linux-gnu" >> $GITHUB_ENV
- name: Install macOS dependencies
if: runner.os == 'macOS'
run: |
brew install openssl@3
echo "OPENSSL_DIR=$(brew --prefix openssl@3)" >> $GITHUB_ENV
- name: Install Windows dependencies
if: runner.os == 'Windows'
run: |
vcpkg integrate install
vcpkg install openssl:x64-windows-static
echo "OPENSSL_DIR=C:/vcpkg/installed/x64-windows-static" >> $env:GITHUB_ENV
echo "OPENSSL_STATIC=1" >> $env:GITHUB_ENV
- name: Build binary
run: |
Expand All @@ -115,6 +138,11 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Install OpenSSL
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2

Expand Down

0 comments on commit b7a858a

Please sign in to comment.