Skip to content

Commit

Permalink
Install Yara from source
Browse files Browse the repository at this point in the history
Signed-off-by: egibs <[email protected]>
  • Loading branch information
egibs committed Aug 14, 2024
1 parent bad9c83 commit 59a79a9
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
permissions:
id-token: write # needed for federation
contents: write # needed to write releases
env:
YARA_VERSION: 4.5.1

jobs:
release-arm64:
Expand All @@ -33,9 +35,16 @@ jobs:
- name: Set output
id: macos_sdk
run: echo "path=$(xcrun --show-sdk-path)" >> $GITHUB_OUTPUT
- name: Install yara
- name: Install pkg-config and yara
run: |
brew install yara
brew install pkg-config
wget https://github.com/VirusTotal/yara/archive/refs/tags/v${{ env.YARA_VERSION }}.tar.gz
tar -zxf v${{ env.YARA_VERSION }}.tar.gz
cd yara-${{ env.YARA_VERSION }}
./bootstrap.sh
./configure
make
sudo make install
- uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200
with:
version: ~> v2
Expand Down Expand Up @@ -67,9 +76,16 @@ jobs:
- name: Set output
id: macos_sdk
run: echo "path=$(xcrun --show-sdk-path)" >> $GITHUB_OUTPUT
- name: Install yara
- name: Install pkg-config and yara
run: |
brew install yara
brew install pkg-config
wget https://github.com/VirusTotal/yara/archive/refs/tags/v${{ env.YARA_VERSION }}.tar.gz
tar -zxf v${{ env.YARA_VERSION }}.tar.gz
cd yara-${{ env.YARA_VERSION }}
./bootstrap.sh
./configure
make
sudo make install
- uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200
with:
version: ~> v2
Expand Down

0 comments on commit 59a79a9

Please sign in to comment.