Skip to content

use docker

use docker #79

Workflow file for this run

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
container-test-job:
runs-on: ${{ matrix.os }}
strategy:
matrix:
BUILD_TYPE: ["Debug"]
os: [ ubuntu-latest ]
container:
image: mcr.microsoft.com/service-fabric/onebox:latest
env:
NODE_ENV: development
ports:
- 80
volumes:
- my_docker_volume:/volume_mount
options: --cpus 1
steps:
- name: Check for dockerenv file
run: (ls /.dockerenv && echo Found dockerenv) || (echo No dockerenv)
- 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

Check failure on line 77 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yaml

Invalid workflow file

You have an error in your yaml syntax on line 77
- name: run build
run: cmake --build build --config ${{ matrix.BUILD_TYPE }}
# - uses: actions/checkout@v2
# - name: apt-get
# run: sudo apt-get install apt-transport-https curl lsb-release wget gnupg2 software-properties-common debconf-utils -y
# - name: install sf
# run: |
# wget -q https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb;
# sudo dpkg -i packages-microsoft-prod.deb;
# curl -fsSL https://packages.microsoft.com/keys/msopentech.asc | sudo apt-key add - ;
# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - ;
# sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" ;
# sudo apt-get update;
# echo "servicefabric servicefabric/accepted-eula-ga select true" | sudo debconf-set-selections ;
# echo "servicefabricsdkcommon servicefabricsdkcommon/accepted-eula-ga select true" | sudo debconf-set-selections ;
# sudo apt-get install servicefabricsdkcommon -y
# - name: Install rust stable
# uses: actions-rs/toolchain@v1
# with:
# toolchain: stable