path checks #12
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
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '^1.21' | |
- name: Go Version | |
run: | | |
go version | |
go env GOPATH | |
- name: Go Mod Init | |
run: go mod init ecfmp | |
- name: Install Go Proto Packages | |
run: | | |
go get google.golang.org/protobuf/cmd/protoc-gen-go | |
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc | |
ls -l $(go env GOPATH)/bin | |
- name: Update PATH For Go Proto Packages | |
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
- name: Check Path | |
run: echo $PATH | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v2 | |
- name: Build Discord | |
run: make discord_proto | |
- name: Build Health | |
run: make health_proto |