Skip to content

Generate code from proto #1

Generate code from proto

Generate code from proto #1

Workflow file for this run

name: Generate code from proto
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Download and unzip third-party tools
run: |
curl -LO https://github.com/thejinchao/turbolink-libraries/releases/download/v1.3/protoc.zip
tar -xvf protoc.zip -C Source\ThirdParty
mkdir -p Tools\Output
- name: Run generate_code.cmd
working-directory: Tools\
# very important, since we use cmd scripts, the default is powershell - pwsh,
# and a bug prevents errors to bubble and show up in the logs
shell: cmd
run: |
copy ..\.github\protos\*.proto .
for %%i in (*.proto) do (generate_code.cmd %%i Output)
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: Generated C++ code
path: Tools\Output