Skip to content

Commit ec45bc1

Browse files
committed
[CI]Use GH Actions for Win Build-Test
Use GithubActions for Windows build, test network with mock server. Relates-To: OLPEDGE-2298 Signed-off-by: Yaroslav Stefinko <ext-yaroslav.stefinko@here.com>
1 parent e90df7f commit ec45bc1

File tree

2 files changed

+46
-5
lines changed

2 files changed

+46
-5
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- '*'
10+
11+
env:
12+
BUILD_TYPE: RelWithDebInfo
13+
14+
15+
jobs:
16+
win_build_test_network:
17+
name: Test on node windows-latest
18+
runs-on: windows-latest
19+
20+
steps:
21+
- name: Check out repository
22+
uses: actions/checkout@v2
23+
- name: Install cert
24+
run: |
25+
curl https://raw.githubusercontent.com/mock-server/mockserver/master/mockserver-core/src/main/resources/org/mockserver/socket/CertificateAuthorityCertificate.pem --output mock-server-cert.cer
26+
Import-Certificate -FilePath mock-server-cert.cer -CertStoreLocation Cert:\LocalMachine\Root
27+
- name: Make dir
28+
run: mkdir build && ls -la ./
29+
shell: bash
30+
- name: Compile SDK for Windows
31+
run: cmake .. -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=$BUILD_TYPE
32+
working-directory: build
33+
shell: bash
34+
- name: Build SDK for Windows
35+
run: cmake --build . --config $BUILD_TYPE
36+
working-directory: build
37+
shell: bash
38+
- name: Test SDK for Windows
39+
run: scripts/windows/test_fv_network.sh
40+
shell: bash

scripts/windows/test_fv_network.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ fi
2424

2525
[[ -d "reports" ]] && rm -rf reports
2626

27-
#echo ">>> Installing mock server SSL certificate into OS... >>>"
28-
#curl https://raw.githubusercontent.com/mock-server/mockserver/master/mockserver-core/src/main/resources/org/mockserver/socket/CertificateAuthorityCertificate.pem --output mock-server-cert.cer
29-
#certutil -enterprise -f -v -addstore "Root" mock-server-cert.cer
30-
#certutil -enterprise -f -v -addstore "CA" mock-server-cert.cer
31-
27+
echo ">>> Installing mock server SSL certificate into OS... >>>"
28+
curl https://raw.githubusercontent.com/mock-server/mockserver/master/mockserver-core/src/main/resources/org/mockserver/socket/CertificateAuthorityCertificate.pem --output mock-server-cert.cer
29+
certutil -enterprise -f -v -addstore "Root" mock-server-cert.cer
30+
certutil -enterprise -f -v -addstore "CA" mock-server-cert.cer
31+
certutil -user -f -v -addstore "Root" mock-server-cert.cer
32+
certutil -user -f -v -addstore "CA" mock-server-cert.cer
3233

3334
echo ">>> Starting Mock Server... >>>"
3435
pushd tests/utils/mock-server

0 commit comments

Comments
 (0)