-
Notifications
You must be signed in to change notification settings - Fork 10
59 lines (57 loc) · 1.9 KB
/
ci-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
name: Windows GitHub CI
on:
pull_request: []
push: []
schedule:
# Run this experiment every 4th hour
# * is a special character in YAML so you have to quote this string
- cron: '* */8 * * *'
jobs:
build-and-test-vigenere:
strategy:
matrix:
platform:
- msvc-arch: x64
cmake-arch: x64
openssl-target: VC-WIN64A
- msvc-arch: x86
cmake-arch: Win32
openssl-target: VC-WIN32
runs-on: windows-latest
steps:
- name: install MSVC for ${{ matrix.platform.msvc-arch }}
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.platform.msvc-arch }}
- name: install cpanm and Test2::V0
uses: perl-actions/install-with-cpanm@v1
with:
install: Test2::V0
- name: checkout vigenere
uses: actions/checkout@v3
with:
submodules: true
- name: checkout OpenSSL
uses: actions/checkout@v3
with:
repository: openssl/openssl
path: openssl
- name: configure OpenSSL for ${{matrix.platform.openssl-target}}
run: |
$cwd = Get-Location
mkdir ..\openssl-install
perl Configure ${{matrix.platform.openssl-target}} --prefix="$cwd\..\openssl-install" no-asm
perl configdata.pm --dump
working-directory: openssl
- name: build+install OpenSSL
run: nmake /S install_sw
working-directory: openssl
- name: configure Vigenere provider for ${{ matrix.platform.cmake-arch }}
run: |
$cwd = Get-Location
cmake -A ${{ matrix.platform.cmake-arch }} -DCMAKE_PREFIX_PATH="$cwd\openssl-install" -S . -B _build --log-level DEBUG
- name: build Vigenere provider
run: cmake --build _build --config Release
- name: test Vigenere provider
run: ctest -VV -C Release
working-directory: _build