Skip to content

Commit 2bc231e

Browse files
committed
Refactor Windows build workflow by removing unused OpenSSL and Jansson dependencies; simplify YARA configuration
1 parent 331d033 commit 2bc231e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/go_build_windows.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ jobs:
1919
mingw-w64-x86_64-gcc
2020
mingw-w64-x86_64-toolchain
2121
mingw-w64-x86_64-pkg-config
22-
mingw-w64-x86_64-openssl
23-
mingw-w64-x86_64-jansson
24-
mingw-w64-x86_64-file
2522
base-devel
2623
autoconf
2724
automake
@@ -35,7 +32,7 @@ jobs:
3532
cd /tmp && unzip yara.zip
3633
cd /tmp/yara-4.5.5
3734
./bootstrap.sh
38-
./configure --prefix=/mingw64 --enable-static --disable-shared --with-crypto --enable-cuckoo --enable-magic --enable-dotnet
35+
./configure --prefix=/mingw64
3936
make -j$(nproc)
4037
make install
4138
# Verify yara.pc installation
@@ -50,14 +47,14 @@ jobs:
5047
run: |
5148
export PKG_CONFIG_PATH="/mingw64/lib/pkgconfig:$PKG_CONFIG_PATH"
5249
export CGO_CFLAGS="-I/mingw64/include"
53-
export CGO_LDFLAGS="-L/mingw64/lib -lyara -ljansson -lmagic -lssl -lcrypto -lshlwapi -lregex -lws2_32 -lcrypt32"
50+
export CGO_LDFLAGS="-L/mingw64/lib -lyara"
5451
cd $GITHUB_WORKSPACE
5552
go test ./... -v
5653
- name: Building Fastfinder
5754
run: |
5855
export PKG_CONFIG_PATH="/mingw64/lib/pkgconfig:$PKG_CONFIG_PATH"
5956
export CGO_CFLAGS="-I/mingw64/include"
60-
export CGO_LDFLAGS="-L/mingw64/lib -lyara -ljansson -lmagic -lssl -lcrypto -lshlwapi -lregex -lws2_32 -lcrypt32"
57+
export CGO_LDFLAGS="-L/mingw64/lib -lyara"
6158
export GOOS="windows"
6259
export GOARCH="amd64"
6360
cd $GITHUB_WORKSPACE

0 commit comments

Comments
 (0)