Skip to content

Windows x86 build

Windows x86 build #1

name: Windows x86 build
on:
workflow_call:
workflow_dispatch:
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: ilammy/msvc-dev-cmd@v1.4.1
with:
arch: x86
- uses: ilammy/setup-nasm@v1
- name: Update Submodules
working-directory: ${{runner.workspace}}/grpc-labview
run: git submodule update --init --recursive
- name: Create Build Environment
run: mkdir ${{runner.workspace}}\grpc-labview\build
- name: Configure CMake
working-directory: ${{runner.workspace}}\grpc-labview\build
run: cmake -G "Visual Studio 16 2019" -A Win32 ..
- name: Build
working-directory: ${{runner.workspace}}\grpc-labview\build
run: cmake --build . --config ${{env.BUILD_TYPE}} -j 16
- name: Tar Build Artifacts
run: >-
tar -czvf labview-grpc-server-windows-x86.tar.gz -C ${{runner.workspace}}\grpc-labview\build\Release
labview_grpc_server.dll
labview_grpc_generator.dll
- name: Upload Build Artifacts
uses: actions/upload-artifact@v2
with:
name: labview-grpc-server-windows-x86
path: labview-grpc-server-windows-x86.tar.gz
retention-days: 5