Skip to content

Commit

Permalink
chore: Update Rust workflow to install dependencies for Linux target
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarburgues committed May 17, 2024
1 parent df7e048 commit 83df50f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ jobs:
if: matrix.target == 'x86_64-pc-windows-gnu'
run: sudo apt-get install mingw-w64 -y

- name: Install dependencies for Linux target
if: matrix.target == 'x86_64-unknown-linux-musl'
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev musl-tools
export OPENSSL_DIR=/usr/include/openssl
export PKG_CONFIG_SYSROOT_DIR=/usr
export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig
- name: Build the project
run: cargo build --release --target ${{ matrix.target }}

Expand Down

0 comments on commit 83df50f

Please sign in to comment.