-
Notifications
You must be signed in to change notification settings - Fork 31
40 lines (37 loc) · 1002 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
32
33
34
35
36
37
38
39
40
name: Windows
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
x86_64:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: install packages
run: |
choco install boost-msvc-14.2
choco install openssl
choco install mingw
choco install grep
- name: cmake
run: |
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 -B build -G "Visual Studio 16 2019" -A x64 swig
- name: build
run: cmake --build build --config Release --parallel 2
- name: dependencies
run: objdump -p build/Release/torrent4j.dll | grep DLL
- name: test
run: |
cp build/Release/torrent4j.dll libtorrent4j.dll
./gradlew test
- uses: actions/upload-artifact@v2
with:
name: libtorrent4j.dll
path: libtorrent4j.dll
retention-days: 5