-
Notifications
You must be signed in to change notification settings - Fork 11
64 lines (55 loc) · 1.63 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Windows
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Cache externals
id: cache-externals
uses: actions/cache@v3
with:
path: ${{runner.temp}}\boost_1_83_0
key: cache-externals
- name: Get externals
if: steps.cache-externals.outputs.cache-hit != 'true'
working-directory: ${{runner.temp}}
shell: powershell
run: |
# Download Boost.
Invoke-WebRequest `
-Uri "https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.7z" `
-OutFile boost.7z
# Extract.
7z x boost.7z
# Build.
cd boost_1_83_0
.\bootstrap
.\b2 link=static
- name: Install pyOpenSSL
working-directory: ${{runner.temp}}
shell: powershell
run: pip3 install pyOpenSSL
- name: Build
env:
BOOST_ROOT: ${{runner.temp}}\boost_1_83_0
Boost_INCLUDE_DIR: ${{runner.temp}}\boost_1_83_0\libs\headers
shell: powershell
run: |
mkdir -p build
cmake -S . -B build -DBoost_USE_STATIC_LIBS=ON -DBoost_DIR="$env:BOOST_ROOT\stage\lib\cmake\Boost-1.83.0"
cmake --build build --config Release
- name: Test libftp
env:
LIBFTP_TEST_SERVER_PATH: ${{github.workspace}}\test\server\server.py
working-directory: ${{github.workspace}}\build\test\Release
run: .\ftp_tests.exe
- name: Test cmdline
working-directory: ${{github.workspace}}\build\app\cmdline\test\Release
run: .\cmdline_tests.exe