forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lighthouse v5.2.1 mamoru_v1: Fix/fix version errors (ethereum#87) 1035a6b geth-mamoru-core-sdk v1.13.11-0.11.3
- Loading branch information
Showing
17 changed files
with
713 additions
and
417 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 |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
build/_workspace | ||
build/_bin | ||
tests/testdata | ||
tmp_node |
This file was deleted.
Oops, something went wrong.
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,57 @@ | ||
name: Build Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- "mamoru*" | ||
- develop | ||
|
||
|
||
pull_request: | ||
branches: | ||
- master | ||
- "mamoru*" | ||
- develop | ||
|
||
|
||
jobs: | ||
build-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.20.x | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
# In order: | ||
# * Module download cache | ||
# * Build cache (Linux) | ||
path: | | ||
~/go/pkg/mod | ||
~/.cache/go-build | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Setup SSH for Private Repository Access | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: Set Git to use SSH for GitHub | ||
run: git config --global url."[email protected]:".insteadOf "https://github.com/" | ||
|
||
- name: Test Build | ||
run: | | ||
ls ~/.ssh | ||
go mod download | ||
make geth | ||
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,58 @@ | ||
name: "Build docker image" | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- "mamoru*" | ||
- develop | ||
|
||
env: | ||
REPOSITORY: mamorufoundation/go-ethereum-sniffer | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Get current date | ||
id: date | ||
run: echo "::set-output name=date::$(date -u +'%Y-%m-%d')" | ||
|
||
- uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: Prepare git and ssh config for build context | ||
run: | | ||
mkdir -p root-config | ||
cp -r ~/.gitconfig ~/.ssh root-config/ | ||
- name: Build and push | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
build-args: | | ||
GIT_REVISION=${{ github.sha }} | ||
BUILD_DATE=${{ steps.date.outputs.date }} | ||
PROFILE=release | ||
push: true | ||
tags: | | ||
${{ env.REPOSITORY }}:latest | ||
${{ env.REPOSITORY }}:${{ github.sha }} | ||
cache-to: type=local,dest=/tmp/docker-cache | ||
cache-from: type=local,src=/tmp/docker-cache,mode=max | ||
ssh: | | ||
default=${{ env.SSH_AUTH_SOCK }} |
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,65 @@ | ||
name: Unit Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- "mamoru*" | ||
- develop | ||
|
||
pull_request: | ||
branches: | ||
- master | ||
- "mamoru*" | ||
- develop | ||
|
||
jobs: | ||
unit-test: | ||
|
||
runs-on: self-hosted | ||
|
||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.20.x | ||
- run: go version | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
# In order: | ||
# * Module download cache | ||
# * Build cache (Linux) | ||
path: | | ||
~/go/pkg/mod | ||
~/.cache/go-build | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Setup SSH for Private Repository Access | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: Set Git to use SSH for GitHub | ||
run: git config --global url."[email protected]:".insteadOf "https://github.com/" | ||
|
||
- name: Set Git to use SSH for GitHub | ||
run: git config --global url."ssh://[email protected]:".insteadOf "https://github.com/" | ||
|
||
- name: Unit Test | ||
env: | ||
ANDROID_HOME: "" # Skip android test | ||
run: | | ||
go mod download | ||
make test | ||
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
Oops, something went wrong.