Generate code from proto #1
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: 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 |