Skip to content

Commit

Permalink
[CI]Use GH Actions for Win Build-Test
Browse files Browse the repository at this point in the history
Use GithubActions for Windows build,
test network with mock server.

Relates-To: OLPEDGE-2298

Signed-off-by: Yaroslav Stefinko <[email protected]>
  • Loading branch information
ystefinko committed Sep 16, 2020
1 parent e90df7f commit ec45bc1
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 5 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- '*'

env:
BUILD_TYPE: RelWithDebInfo


jobs:
win_build_test_network:
name: Test on node windows-latest
runs-on: windows-latest

steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Install cert
run: |
curl https://raw.githubusercontent.com/mock-server/mockserver/master/mockserver-core/src/main/resources/org/mockserver/socket/CertificateAuthorityCertificate.pem --output mock-server-cert.cer
Import-Certificate -FilePath mock-server-cert.cer -CertStoreLocation Cert:\LocalMachine\Root
- name: Make dir
run: mkdir build && ls -la ./
shell: bash
- name: Compile SDK for Windows
run: cmake .. -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=$BUILD_TYPE
working-directory: build
shell: bash
- name: Build SDK for Windows
run: cmake --build . --config $BUILD_TYPE
working-directory: build
shell: bash
- name: Test SDK for Windows
run: scripts/windows/test_fv_network.sh
shell: bash
11 changes: 6 additions & 5 deletions scripts/windows/test_fv_network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ fi

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

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

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

echo ">>> Starting Mock Server... >>>"
pushd tests/utils/mock-server
Expand Down

0 comments on commit ec45bc1

Please sign in to comment.