mirror of
https://github.com/arkadiyt/protodump.git
synced 2026-10-21 09:46:52 +02:00
25 lines
680 B
YAML
25 lines
680 B
YAML
on:
|
|
- push
|
|
- pull_request_target
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.22'
|
|
- name: Install Protoc
|
|
run: |
|
|
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v28.1/protoc-28.1-linux-x86_64.zip
|
|
unzip protoc-28.1-linux-x86_64.zip -d $HOME/.local
|
|
export PATH="$PATH:$HOME/.local/bin"
|
|
protoc --version
|
|
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
|
|
- name: Test
|
|
run: make test
|
|
- name: Build
|
|
run: make build
|