Merge pull request #66 from envelope-org/fix/issue-63 #11
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 application | |
on: | |
push: | |
branches: | |
- "*" | |
tags-ignore: | |
- "v*.*.*" | |
env: | |
PROTOC_VERSION: 3.14.0 | |
GO_VERSION: 1.21.1 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Setup protobuf | |
run: | | |
PROTOC_ZIP=protoc-${{ env.PROTOC_VERSION }}-linux-x86_64.zip | |
curl -OL https://github.com/google/protobuf/releases/download/v${{ env.PROTOC_VERSION }}/$PROTOC_ZIP | |
sudo unzip -o $PROTOC_ZIP -d /usr/local/protoc | |
sudo chmod +xr -R /usr/local/protoc | |
sudo ln -s /usr/local/protoc/bin/protoc /usr/local/bin | |
sudo ln -s /usr/local/protoc/include/google /usr/local/include/google | |
- name: Lint programs | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.54 | |
skip-pkg-cache: true | |
skip-build-cache: true | |
skip-go-installation: true | |
- name: Build app | |
run: | | |
go install google.golang.org/protobuf/cmd/[email protected] | |
make all tag=ci | |