Skip to content

Commit b6d7842

Browse files
committed
Merge branch 'v2fly-master' into master
2 parents adb3fd3 + 7e38c78 commit b6d7842

193 files changed

Lines changed: 5883 additions & 5311 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dev/protoc/linux/protoc

656 KB
Binary file not shown.

.dev/protoc/macos/protoc

3.06 MB
Binary file not shown.

.dev/protoc/windows/protoc.exe

1.24 MB
Binary file not shown.

.github/dependabot.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
16
version: 2
27
updates:
3-
- package-ecosystem: gomod
4-
directory: "/"
5-
schedule:
6-
interval: daily
7-
open-pull-requests-limit: 10
8+
- package-ecosystem: "gomod"
9+
directory: "/"
10+
schedule:
11+
interval: "daily"
12+
open-pull-requests-limit: 10
13+
14+
- package-ecosystem: "github-actions"
15+
directory: "/"
16+
schedule:
17+
interval: "daily"

.github/workflows/coverage.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,37 @@ name: Coverage
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
6+
paths:
7+
- "**/*.go"
68

79
jobs:
8-
9-
build:
10-
name: Coverage
10+
coverage:
1111
runs-on: ubuntu-latest
12-
1312
steps:
14-
1513
- name: Set up Go 1.x
1614
uses: actions/setup-go@v2
1715
with:
1816
go-version: ^1.14
19-
id: go
2017

21-
- name: Check out code into the Go module directory
18+
- name: Checkout codebase
2219
uses: actions/checkout@v2
2320

21+
- name: Cache go module
22+
uses: actions/cache@v2
23+
id: cache-gomodules
24+
with:
25+
path: ~/go/pkg/mod
26+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
27+
restore-keys: |
28+
${{ runner.os }}-go-
29+
2430
- name: Get dependencies
31+
if: steps.cache-gomodules.outputs.cache-hit != 'true'
2532
run: |
2633
go get -v -t -d ./...
2734
28-
- name: Run Coverage
35+
- name: Run coverage
2936
run: ./testing/coverage/coverall2
3037

3138
- name: Upload coverage to Codecov

.github/workflows/dlc.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/docker.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
release:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Set up Checkout
12+
- name: Checkout default branch
1313
uses: actions/checkout@v2
1414

1515
- name: Install Buildx and QEMU
@@ -21,7 +21,7 @@ jobs:
2121
docker run --rm --privileged multiarch/qemu-user-static:latest --reset -p yes --credential yes
2222
docker buildx create --use --name build --node build --driver-opt network=host
2323
24-
- name: Log in to Docker Hub
24+
- name: Login to Docker Hub
2525
env:
2626
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
2727
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

.github/workflows/linter.yml

Lines changed: 46 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,59 @@
1-
name: Lint Code Base
1+
name: Lint
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
7-
branches: [ master ]
8-
types: [assigned, opened, synchronize, reopened]
7+
branches: [master]
8+
types: [opened, synchronize, reopened]
99

1010
jobs:
11-
build:
12-
name: Lint Code Base
11+
lint:
1312
runs-on: ubuntu-latest
14-
1513
steps:
16-
- name: Checkout Code
14+
- name: Set up Go 1.x
15+
uses: actions/setup-go@v2
16+
with:
17+
go-version: ^1.14
18+
19+
- name: Checkout codebase
1720
uses: actions/checkout@v2
1821

19-
- name: Lint Code Base
20-
uses: github/super-linter@v2.2.0
22+
- name: Cache go module
23+
uses: actions/cache@v2
24+
with:
25+
path: ~/go/pkg/mod
26+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
27+
restore-keys: ${{ runner.os }}-go-
28+
29+
- name: Show if need to format code
30+
if: ${{ always() }}
31+
run: |
32+
filesNeedToFormat=$(go fmt ./...)
33+
if [[ $filesNeedToFormat ]]; then
34+
echo -e "\033[0;36m[Error] The following Go files need to be formatted:\033[0m"
35+
echo -e "\033[0;31m$filesNeedToFormat\033[0m"
36+
exit 1
37+
fi
38+
39+
- name: Lint *.go files
40+
if: ${{ always() }}
41+
run: |
42+
go vet $(go list ./... | grep -v /external/)
43+
if [[ $? != 0 ]]; then
44+
exit 1
45+
fi
46+
47+
- name: Lint other files
48+
if: ${{ always() }}
49+
uses: github/super-linter@v3.9.2
2150
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2252
VALIDATE_ALL_CODEBASE: false
53+
VALIDATE_BASH: false
54+
VALIDATE_DOCKERFILE: false
55+
VALIDATE_DOCKERFILE_HADOLINT: false
56+
VALIDATE_GO: false
2357
VALIDATE_JSON: false
24-
VALIDATE_ANSIBLE: false
58+
VALIDATE_MD: false
59+
VALIDATE_PROTOBUF: false

.github/workflows/sign.yml

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,24 @@
1-
# This is a basic workflow to help you get started with Actions
2-
31
name: Sign
42

5-
# Controls when the action will run. Triggers the workflow on push or pull request
6-
# events but only for the master branch
73
on:
84
release:
95
types: [released]
106

11-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
127
jobs:
13-
# This workflow contains a single job called "build"
14-
build:
15-
# The type of runner that the job will run on
8+
sign:
169
runs-on: ubuntu-latest
17-
18-
# Steps represent a sequence of tasks that will be executed as part of the job
1910
steps:
20-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21-
- uses: actions/checkout@v2
22-
23-
# Invoke release signing
24-
- name: make it run
25-
run: chmod +x $GITHUB_WORKSPACE/release/requestsign_github.sh
11+
- name: Checkout default branch
12+
uses: actions/checkout@v2
2613

27-
# Invoke release signing
28-
- name: make it run
29-
run: chmod +x $GITHUB_WORKSPACE/release/requestsign.sh
14+
- name: Grant it execution permission
15+
run: |
16+
chmod +x $GITHUB_WORKSPACE/release/requestsign_github.sh
17+
chmod +x $GITHUB_WORKSPACE/release/requestsign.sh
3018
31-
# Invoke release signing
3219
- name: Invoke release signing
3320
env:
3421
SIGN_SERVICE_PASSWORD: ${{ secrets.SIGN_SERVICE_PASSWORD }}
3522
SIGN_SERIVCE_URL: ${{ secrets.SIGN_SERIVCE_URL }}
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
run: $GITHUB_WORKSPACE/release/requestsign_github.sh
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
run: $GITHUB_WORKSPACE/release/requestsign_github.sh

.github/workflows/stale.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@ name: Mark stale issues and pull requests
22

33
on:
44
schedule:
5-
- cron: "30 1 * * *"
5+
- cron: "30 1 * * *"
66

77
jobs:
88
stale:
9-
109
runs-on: ubuntu-latest
11-
1210
steps:
13-
- uses: actions/stale@v1
14-
with:
15-
repo-token: ${{ secrets.GITHUB_TOKEN }}
16-
stale-issue-message: 'This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days'
17-
days-before-stale: 120
18-
days-before-close: 5
11+
- uses: actions/stale@v3.0.10
12+
with:
13+
repo-token: ${{ secrets.GITHUB_TOKEN }}
14+
stale-issue-message: "This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days"
15+
stale-pr-message: 'It has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days'
16+
days-before-stale: 120
17+
days-before-close: 5

0 commit comments

Comments
 (0)