gofmt and fix misspell #27
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: build | |
on: | |
push: | |
branches: [ "master", "dev" ] | |
pull_request: | |
branches: [ "dev" ] | |
workflow_dispatch: | |
env: | |
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: ignore | |
jobs: | |
run_build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: clone repo | |
uses: actions/checkout@v3 | |
- name: download and install | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22.5' | |
- name: protobuff install | |
run: | | |
sudo apt update | |
sudo apt install protobuf-compiler | |
- name: go_ins_1 | |
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest | |
- name: go_ins_2 | |
run: go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest | |
- name: generate | |
run: go generate ./... | |
- name: check version | |
run: go version | |
- name: check folder | |
run: ls | |
- name: do build | |
run: go build snetd/main.go |