Skip to content

Commit

Permalink
Add Win build job
Browse files Browse the repository at this point in the history
Use image with VC 2019

Relates-To: OLPEDGE-2873

Signed-off-by: Yaroslav Stefinko <ext-yaroslav.stefinko@here.com>
  • Loading branch information
ystefinko authored and mykhailo-kuchma committed Apr 24, 2024
1 parent 66e88d7 commit 526f6fc
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 19 deletions.
62 changes: 46 additions & 16 deletions .github/workflows/psv_pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
CXX: g++-7
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "C++ Lint checker script"
run: ./scripts/misc/cpplint_ci.sh
shell: bash
Expand All @@ -42,7 +42,7 @@ jobs:
CXX: g++-9
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Ubuntu dependencies
run: sudo apt-get update && sudo apt-get install -y libboost-all-dev ccache libssl-dev libcurl4-openssl-dev gcc-9 g++-9 --no-install-recommends
shell: bash
Expand All @@ -63,7 +63,7 @@ jobs:
CXX: g++-7
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install Ubuntu dependencies
run: sudo apt-get update && sudo apt-get install -y libboost-all-dev libssl-dev libcurl4-openssl-dev gcc-7 g++-7 --no-install-recommends
shell: bash
Expand All @@ -78,7 +78,7 @@ jobs:
BUILD_TYPE: RelWithDebInfo
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Ubuntu dependencies
run: sudo apt-get update && sudo apt-get install -y libboost-all-dev ccache libssl-dev libcurl4-openssl-dev --no-install-recommends
shell: bash
Expand All @@ -95,7 +95,7 @@ jobs:
CXX: g++-13
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install Ubuntu dependencies
run: sudo add-apt-repository ppa:ubuntu-toolchain-r/test && sudo apt-get update && sudo apt-get install -y libboost-all-dev libssl-dev libcurl4-openssl-dev gcc-13 g++-13 --no-install-recommends
shell: bash
Expand All @@ -112,7 +112,7 @@ jobs:
CXX: g++-13
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Ubuntu dependencies
run: sudo add-apt-repository ppa:ubuntu-toolchain-r/test && sudo apt-get update && sudo apt-get install -y libboost-all-dev ccache libssl-dev libcurl4-openssl-dev --no-install-recommends
shell: bash
Expand All @@ -127,7 +127,7 @@ jobs:
BUILD_TYPE: RelWithDebInfo
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install Ubuntu dependencies
run: sudo apt-get update && sudo apt-get install -y libboost-all-dev libssl-dev libcurl4-openssl-dev --no-install-recommends
shell: bash
Expand All @@ -145,7 +145,7 @@ jobs:
CXX: clang++-7
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install Ubuntu dependencies
run: sudo apt-get update -y && sudo apt-get install clang-7 ccache libcurl4-openssl-dev -y --no-install-recommends --fix-missing
shell: bash
Expand All @@ -161,7 +161,7 @@ jobs:
BUILD_TYPE: RelWithDebInfo
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Verification of prerequisites
run: env && ls -la $ANDROID_HOME
shell: bash
Expand All @@ -174,7 +174,7 @@ jobs:
runs-on: macOS-11
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: MacOS Build
run: scripts/macos/psv/azure_macos_build_psv.sh
shell: bash
Expand All @@ -184,7 +184,7 @@ jobs:
runs-on: macOS-12
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: MacOS Build
run: scripts/macos/psv/azure_macos_build_psv.sh
shell: bash
Expand All @@ -194,7 +194,7 @@ jobs:
runs-on: macOS-11
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: iOS Xcode 11-7 Build
run: scripts/ios/azure_ios_build_psv.sh
shell: bash
Expand All @@ -206,7 +206,7 @@ jobs:
runs-on: macOS-12
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: iOS Xcode 14-2 Build
run: scripts/ios/azure_ios_build_psv.sh
shell: bash
Expand All @@ -216,7 +216,7 @@ jobs:
runs-on: macOS-13
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: iOS Xcode 15 Build
run: scripts/ios/azure_ios_build_psv.sh
shell: bash
Expand All @@ -226,17 +226,47 @@ jobs:
runs-on: macOS-14
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: iOS Xcode 15 Build
run: scripts/ios/azure_ios_build_psv.sh
shell: bash

psv-win-vc2019-build:
name: PSV.Win.VC2019
runs-on: windows-2019
env:
BUILD_TYPE: RelWithDebInfo
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Build
run: scripts/windows/build.sh
shell: bash

psv-win-vc2019-build-2:
name: PSV.Win.VC2019
runs-on: windows-2019
env:
BUILD_TYPE: Release
strategy:
matrix:
toolset:
- 14.0
- 14.XX
steps:
- name: Check out repository
uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- name: Build
run: scripts/windows/build.sh
shell: bash

psv-commit-checker:
name: PSV.Commit.Checker
runs-on: ubuntu-20.04
if: github.ref_name != 'master'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set tags env variables.
Expand Down
10 changes: 7 additions & 3 deletions scripts/windows/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@
# SPDX-License-Identifier: Apache-2.0
# License-Filename: LICENSE


env
echo "Installing x64..."
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64
echo "Installed!"
env
[[ -d "build" ]] && rm -rf build
mkdir build && cd build
cmake .. -G "Visual Studio 16 2019" -A x64 \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
cmake .. -G "Visual Studio 14 2015" -A x64 \
-DBUILD_TYPE=$BUILD_TYPE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
cmake --build . --config $BUILD_TYPE

0 comments on commit 526f6fc

Please sign in to comment.