Refactor api

This commit is contained in:
世界 2022-08-14 11:52:38 +08:00
parent d378b6ca53
commit b828f01643
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
15 changed files with 357 additions and 138 deletions

View file

@ -3,6 +3,7 @@ name: Debug build
on:
push:
branches:
- main
- dev
paths-ignore:
- '**.md'
@ -29,7 +30,7 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: ${{ steps.version.outputs.go_version }}
- name: Build
- name: Add cache to Go proxy
run: |
version=`git rev-parse HEAD`
mkdir build
@ -37,4 +38,9 @@ jobs:
go mod init build
go get -v github.com/sagernet/sing-tun@$version
popd
go build -v .
continue-on-error: true
- name: Build
run: |
make test
make lint_install
make lint