Skip to content

Merge pull request #26 from Digital-Production-Aachen/UpdateActionsVe… #66

Merge pull request #26 from Digital-Production-Aachen/UpdateActionsVe…

Merge pull request #26 from Digital-Production-Aachen/UpdateActionsVe… #66

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Generate proto code and upload artifact
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- name: Install prerequisits
run: |
sudo apt install protobuf-compiler
go install github.com/golang/protobuf/protoc-gen-go@latest
- name: Create folder structure
run: |
mkdir generated
mkdir generated/cs_autogen
mkdir generated/cpp_autogen
mkdir generated/python_autogen
mkdir generated/java_autogen
mkdir generated/go_autogen
mkdir generated/ruby_autogen
- name: Generate code
run: |
protoc -I=. --csharp_out=generated/cs_autogen open_vector_format.proto
protoc -I=. --cpp_out=generated/cpp_autogen open_vector_format.proto
protoc -I=. --plugin=protoc-gen-go=/home/runner/go/bin/protoc-gen-go --go_out=generated/go_autogen open_vector_format.proto
protoc -I=. --java_out=generated/java_autogen open_vector_format.proto
protoc -I=. --python_out=generated/python_autogen open_vector_format.proto
protoc -I=. --csharp_out=generated/cs_autogen ovf_lut.proto
protoc -I=. --cpp_out=generated/cpp_autogen ovf_lut.proto
protoc -I=. --plugin=protoc-gen-go=/home/runner/go/bin/protoc-gen-go --go_out=generated/go_autogen ovf_lut.proto
protoc -I=. --java_out=generated/java_autogen ovf_lut.proto
protoc -I=. --python_out=generated/python_autogen ovf_lut.proto
protoc -I=. --csharp_out=generated/cs_autogen build_processor_strategy.proto
protoc -I=. --cpp_out=generated/cpp_autogen build_processor_strategy.proto
protoc -I=. --plugin=protoc-gen-go=/home/runner/go/bin/protoc-gen-go --go_out=generated/go_autogen build_processor_strategy.proto
protoc -I=. --java_out=generated/java_autogen build_processor_strategy.proto
protoc -I=. --python_out=generated/python_autogen build_processor_strategy.proto
- name: Upload
uses: actions/upload-artifact@v4
with:
name: generated_code
path: generated/