mirror of
https://github.com/docker/compose.git
synced 2025-07-24 22:24:41 +02:00
Use github action to install protoc
This commit is contained in:
parent
04e2710380
commit
5cbfa2778e
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -20,6 +20,9 @@ jobs:
|
|||||||
- name: Checkout code into the Go module directory
|
- name: Checkout code into the Go module directory
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install Protoc
|
||||||
|
uses: arduino/setup-protoc@master
|
||||||
|
|
||||||
- name: Get dependencies
|
- name: Get dependencies
|
||||||
run: ./setup-dev.sh
|
run: ./setup-dev.sh
|
||||||
|
|
||||||
|
6
scripts/setup/install-go-gen
Executable file
6
scripts/setup/install-go-gen
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
go get -u github.com/gogo/protobuf/proto
|
||||||
|
go get -u github.com/gogo/protobuf/jsonpb
|
||||||
|
go get -u github.com/golang/protobuf/protoc-gen-go
|
||||||
|
go get -u github.com/stevvooe/protobuild
|
@ -14,7 +14,6 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Downloads and installs protobuf
|
# Downloads and installs protobuf
|
||||||
#
|
#
|
||||||
@ -60,7 +59,3 @@ ppc64le)
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
rm -rf $PROTOBUF_DIR
|
rm -rf $PROTOBUF_DIR
|
||||||
|
|
||||||
go get github.com/gogo/protobuf/proto
|
|
||||||
go get github.com/gogo/protobuf/jsonpb
|
|
||||||
go get -u github.com/golang/protobuf/protoc-gen-go
|
|
||||||
|
@ -26,5 +26,4 @@
|
|||||||
# THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
# THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
./scripts/setup/install-protobuf
|
./scripts/setup/install-protobuf
|
||||||
|
./scripts/setup/install-go-gen
|
||||||
go get github.com/stevvooe/protobuild
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user