Skip to content

Commit

Permalink
ci: disable GOPROXY
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 committed Feb 2, 2023
1 parent 058f62f commit 5c05033
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
- name: Test Build
run: |
GOPROXY=direct go mod download
make geth
4 changes: 3 additions & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ jobs:
uses: actions/checkout@v3

- name: Truffle test
run: make truffle-test
run: |
GOPROXY=direct go mod download
make truffle-test
3 changes: 1 addition & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ jobs:
${{ runner.os }}-go-
- run: |
go mod tidy
go mod download
GOPROXY=direct go mod download
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
tags:
- 'pre-*'

env:
GOPROXY: direct

jobs:
build:
name: Build Release
Expand Down Expand Up @@ -44,7 +47,9 @@ jobs:
# ==============================

- name: Build Binary for ${{matrix.os}}
run: make geth
run: |
go mod download
make geth
# ==============================
# Cross Compile for ARM
Expand All @@ -53,6 +58,7 @@ jobs:
- name: Build Binary for ARM
if: matrix.os == 'ubuntu-latest'
run: |
go mod download
make geth-linux-arm
# ==============================
# Upload artifacts
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
tags:
- v*

env:
GOPROXY: direct

jobs:
build:
name: Build Release
Expand Down Expand Up @@ -44,7 +47,9 @@ jobs:
# ==============================

- name: Build Binary for ${{matrix.os}}
run: make geth
run: |
go mod download
make geth
# ==============================
# Cross Compile for ARM
Expand All @@ -53,6 +58,7 @@ jobs:
- name: Build Binary for ARM
if: matrix.os == 'ubuntu-latest'
run: |
go mod download
make geth-linux-arm
# ==============================
# Upload artifacts
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ jobs:
env:
ANDROID_HOME: "" # Skip android test
run: |
GOPROXY=direct go mod download
make test
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ RUN apk add --no-cache make gcc musl-dev linux-headers git bash
# Get dependencies - will also be cached if we won't change go.mod/go.sum
COPY go.mod /go-ethereum/
COPY go.sum /go-ethereum/
ENV GOPROXY=direct
RUN cd /go-ethereum && go mod download

ADD . /go-ethereum
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN apk add --no-cache make gcc musl-dev linux-headers git bash

ADD . /bsc
WORKDIR /bsc
RUN make geth
RUN GOPROXY=direct go mod download && make geth
RUN mv /bsc/build/bin/geth /usr/local/bin/geth

EXPOSE 8545 8547 30303 30303/udp
Expand Down

0 comments on commit 5c05033

Please sign in to comment.