github path #7
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 | |
- name: Go Mod Init | |
run: go mod init ecfmp | |
- name: Install Go Proto Packages | |
run: go get -u google.golang.org/protobuf/cmd/protoc-gen-go google.golang.org/grpc/cmd/protoc-gen-go-grpc | |
- name: Update PATH For Go Proto Packages | |
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v2 | |
- name: Build Discord | |
run: make discord_proto | |
- name: Build Health | |
run: make health_proto |