fix build #66
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
BUILD_TYPE: ["Debug"] | |
os: [ windows-latest ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Get MSVC | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: Get specific version CMake, v3.21.2 | |
uses: lukka/[email protected] | |
- name: Install rust stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: run cmake | |
run: > | |
cmake . -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} -B build | |
- name: run build | |
run: cmake --build build --config ${{ matrix.BUILD_TYPE }} | |
# mysql bin has conflicting dlls with fabric than prevents fabric from starting | |
- name: Remove conflict dll paths | |
shell: powershell | |
run: | | |
get-command libprotobuf.dll | format-list | |
Remove-Item -Recurse -Force "C:\Program Files\MySQL\MySQL Server 8.0\bin" | |
- name: check sf exist | |
run: Powershell.exe -File .\build\_deps\service_fabric_cpp-src\scripts\check_sf_installed.ps1 | |
- name: start sf cluster | |
run: Powershell.exe -File "C:\Program Files\Microsoft SDKs\Service Fabric\ClusterSetup\DevClusterSetup.ps1" -CreateOneNodeCluster | |
- name: start connection | |
run: Powershell.exe -File .\build\_deps\service_fabric_cpp-src\scripts\check_cluster_online.ps1 | |
- name: run echo example app | |
run: Powershell.exe -File .\tests\echo_script_test.ps1 |