From c7a1d0ef288d6b75d570d14274d9eb2985b34469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=96=E4=BA=96=E4=BC=8D?= Date: Fri, 26 Feb 2021 15:59:52 +0800 Subject: [PATCH 1/2] Update appveyor.yml remove `golang dep` --- appveyor.yml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index f428ea6b..ddff71fd 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -27,16 +27,6 @@ install: Start-FileDownload "http://libgd.blob.core.windows.net/mingw/i686-4.9.1-release-posix-dwarf-rt_v3-rev1.7z" -FileName mingw_x86.7z; 7z x -oC:\ mingw_x86.7z | out-null; } - - ps: if($env:tbs_arch -eq 'x86') - { - Start-FileDownload https://github.com/golang/dep/releases/download/v0.4.1/dep-windows-386.exe; - copy dep-windows-386.exe c:\go\bin\dep.exe; - } - - ps: if($env:tbs_arch -eq 'x64') - { - Start-FileDownload https://github.com/golang/dep/releases/download/v0.4.1/dep-windows-amd64.exe; - copy dep-windows-amd64.exe c:\go\bin\dep.exe; - } - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% - echo %PATH% - echo %GOPATH% @@ -49,7 +39,6 @@ build_script: - set CGO_ENABLED=1 - for /f "delims=" %%i in ('go version') do (set GO_VERSION=%%i) - cd c:\gopath\src\github.com\lifei6671\mindoc - - dep ensure -v - go build -v -o "mindoc_windows_%GOARCH%.exe" -ldflags="-w -X github.com/lifei6671/mindoc/conf.VERSION=%APPVEYOR_REPO_TAG_NAME% -X 'github.com/lifei6671/mindoc/conf.BUILD_TIME=%date% %time%' -X 'conf.GO_VERSION=%GO_VERSION%'" - 7z a -t7z -r mindoc_windows_%GOARCH%.7z conf/*.conf* static/* mindoc_windows_%GOARCH%.exe views/* uploads/* test_script: @@ -73,4 +62,4 @@ deploy: prerelease: false artifact: mindoc_windows_%GOARCH%.7z on: - appveyor_repo_tag: true \ No newline at end of file + appveyor_repo_tag: true From 13925be78e4e4820fbaf4ff66ff22b150a1e82f1 Mon Sep 17 00:00:00 2001 From: roberChen Date: Fri, 26 Feb 2021 16:13:13 +0800 Subject: [PATCH 2/2] Revert "Create go.yml" This reverts commit f90a717fe3bef9a6221efbd00136772d7e4c8e39. --- .github/workflows/go.yml | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml deleted file mode 100644 index 1bd0a1f9..00000000 --- a/.github/workflows/go.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Go - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.15 - - - name: Build - run: go build -v ./... - - - name: Test - run: go test -v ./...