-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 870 Bytes
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Build Zeek on Windows
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-2019
steps:
- name: Install dependencies
run: |
choco install -y --no-progress conan --version=1.58.0
choco install -y --no-progress winflexbison3
shell: cmd
- name: Checkout Zeek
uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: recursive
- name: Build Zeek
run: |
call refreshenv
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
mkdir build
cd build
cmake.exe .. -DCMAKE_BUILD_TYPE=release -DENABLE_ZEEK_UNIT_TESTS=yes -D CMAKE_INSTALL_PREFIX=/usr/local/zeek -G Ninja
cmake.exe --build .
cmake.exe --install .
shell: cmd