-
Notifications
You must be signed in to change notification settings - Fork 15
/
appveyor.yml
38 lines (30 loc) · 1.17 KB
/
appveyor.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
version: 1.0.{build}
image: Visual Studio 2022
platform: x64
environment:
LIBOQS_INSTALL_PATH: C:\liboqs
LIBOQS_BUILD_DIR: C:\liboqs\build
LIBOQS_INCLUDE_DIR: C:\liboqs\build\include
LIBOQS_LIB_DIR: C:\liboqs\build\lib
LIBOQS_DLL_DIR: C:\liboqs\build\bin
before_build:
- cmd: |-
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
set PATH=%APPVEYOR_BUILD_FOLDER%\%PLATFORM%;%PATH%
git clone https://github.com/open-quantum-safe/liboqs %LIBOQS_INSTALL_PATH%
mkdir %LIBOQS_BUILD_DIR%
cd %LIBOQS_BUILD_DIR%
cmake .. -G"Ninja" -DBUILD_SHARED_LIBS=ON
ninja 1> nul
mkdir %APPVEYOR_BUILD_FOLDER%\%PLATFORM%
copy %LIBOQS_BUILD_DIR%\bin\oqs.dll %APPVEYOR_BUILD_FOLDER%\%PLATFORM%
nuget restore %APPVEYOR_BUILD_FOLDER%\dotnetOQS.sln
build:
project: dotnetOQS.sln
verbosity: minimal
parallel: true
configuration:
- Release
test_script:
- dotnet %APPVEYOR_BUILD_FOLDER%\dotnetOQSSample\bin\%CONFIGURATION%\net6.0\dotnetOQSSample.dll
- dotnet %APPVEYOR_BUILD_FOLDER%\dotnetOQSUnitTest\bin\%CONFIGURATION%\net6.0\dotnetOQSUnitTest.dll