Skip to content

Commit

Permalink
feat: php building and building with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyTWF committed Oct 6, 2023
1 parent a8656fe commit db92532
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 26 deletions.
24 changes: 2 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,8 @@ jobs:
- 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: Add Go to PATH
run: |
echo $(go env GOPATH)/bin >> $GITHUB_PATH
- name: Install Protoc
uses: arduino/setup-protoc@v2

- name: Check Protoc version
run: protoc --version

- name: Install Go Proto Packages
run: |
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
- name: Pull Builder Container
run: make pull_builder

- name: Build Discord
run: make discord_proto
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
build
*.pb.go
gen
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
pull_builder:
docker pull namely/protoc-all

discord_proto:
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative ./discord/discord.proto
docker run -v ./discord:/defs namely/protoc-all -f discord.proto -l go
docker run -v ./discord:/defs namely/protoc-all -f discord.proto -l php

health_proto:
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative ./health/health.proto
docker run -v ./health:/defs namely/protoc-all -f health.proto -l go
1 change: 0 additions & 1 deletion discord/discord.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
syntax = "proto3";
option go_package = "ecfmp.vatsim.net/grpc/discord";


package ecfmp_discord;

service Discord {
Expand Down

0 comments on commit db92532

Please sign in to comment.