Update appveyor.yml

remove `golang dep`
pull/660/head
玖亖伍 2021-02-26 15:59:52 +08:00 committed by GitHub
parent 9aa13a8918
commit c7a1d0ef28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 12 deletions

View File

@ -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
appveyor_repo_tag: true