-
Notifications
You must be signed in to change notification settings - Fork 11
58 lines (50 loc) · 1.41 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
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: Build
env:
BOOST_ROOT: ${{runner.temp}}\boost_1_83_0
Boost_INCLUDE_DIR: ${{runner.temp}}\boost_1_83_0\libs\headers
run: |
mkdir -p build
cmake -S . -B build -DBoost_USE_STATIC_LIBS=ON
cmake --build build --config Release
- name: Test FTP
env:
LIBFTP_TEST_SERVER_PATH: ${{github.workspace}}\test\server\server.py
working-directory: ${{github.workspace}}\build\test\Release
run: .\ftp_test.exe
- name: Test cmdline
working-directory: ${{github.workspace}}\build\app\cmdline\Release
run: .\cmdline_test.exe