Skip to content

Commit

Permalink
fix: install OpenSSL on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Feb 9, 2024
1 parent 1b15646 commit 2dce4f0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/golang.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,17 @@ jobs:
shell: bash
run: echo "OPENSSL_DIR=${{ github.workspace }}\\vcpkg\\installed\\x64-windows-static" >> $GITHUB_ENV

# Install OpenSSL on Linux
- name: Install dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libssl-dev
- name: Build Rust library
run: cargo build --release --features openssl-static -p yara-x -p yara-x-c
run: cargo build --release -p yara-x -p yara-x-c

- name: Run Go tests
run: |
cd go
go test -tags static_link
go test

0 comments on commit 2dce4f0

Please sign in to comment.