-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4437 from harmony-one/dev
Release Candidate v2023.2.2
- Loading branch information
Showing
102 changed files
with
1,282 additions
and
766 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Build and Push harmony proto Docker Image | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_and_push: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout harmony core code | ||
uses: actions/checkout@v3 | ||
with: | ||
path: harmony | ||
ref: ${{ github.ref }} | ||
fetch-depth: 0 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: ./harmony/api/service/legacysync/downloader | ||
file: ./harmony/api/service/legacysync/downloader/Proto.Dockerfile | ||
push: true | ||
platforms: linux/amd64,linux/arm64 | ||
tags: | | ||
harmonyone/harmony-proto:latest |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
os: linux | ||
dist: bionic | ||
dist: jammy | ||
language: go | ||
go: | ||
- 1.19.5 | ||
|
@@ -22,13 +22,10 @@ install: | |
- git clone https://github.com/harmony-one/harmony-test.git $GOPATH/src/github.com/harmony-one/harmony-test | ||
- (cd $GOPATH/src/github.com/harmony-one/mcl; make -j4) | ||
- (cd $GOPATH/src/github.com/harmony-one/bls; make BLS_SWAP_G=1 -j4) | ||
- go install google.golang.org/protobuf/cmd/[email protected] | ||
- go install google.golang.org/grpc/cmd/[email protected] | ||
# - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.41.1 | ||
- make go-get | ||
- go install golang.org/x/tools/cmd/goimports@latest | ||
- go install github.com/harmony-ek/gencodec@latest | ||
- scripts/install_build_tools.sh | ||
script: | ||
- ${TEST} | ||
after_success: | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
protoc -I ./ message.proto --go_out=. --go-grpc_out=. | ||
#!/bin/bash | ||
|
||
docker run --platform linux/amd64 -v ${PWD}:/tmp ${PROTOC_IMAGE} /tmp/message.proto |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package message | ||
|
||
//go:generate protoc message.proto --go_out=. --go-grpc_out=. | ||
//go:generate ./gen.sh |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.