naiveproxy/.appveyor.yml
klzgrad 1f39882089 Fix option parsing
Fix parsing of socks://ip:port, which got parsed to socks://ip.

Also, path cleanup in CI configs. Use prebuilt gn binaries for all platforms, which failed to build on MacOS for unclear reason.
2019-02-05 16:28:05 +08:00

29 lines
932 B
YAML

version: '{build}'
image: Visual Studio 2017
install:
- cinst ninja
cache:
- '%USERPROFILE%\.cargo\bin'
- '%LOCALAPPDATA%\Mozilla\sccache'
build_script:
- bash ./tools/import-upstream.sh
- bash -c 'cd src; ./get-clang.sh'
- bash -c '~/.cargo/bin/sccache -s'
- bash -c 'cd src; ./build.sh'
- bash -c '~/.cargo/bin/sccache -s'
- bash -c 'mkdir naive-$APPVEYOR_REPO_TAG_NAME-win64'
- bash -c 'cp src/out/Release/naive.exe src/config.json LICENSE naive-$APPVEYOR_REPO_TAG_NAME-win64/'
- bash -c '7z a naive-$APPVEYOR_REPO_TAG_NAME-win64.zip naive-$APPVEYOR_REPO_TAG_NAME-win64/'
test: off
artifacts:
- path: naive-$(APPVEYOR_REPO_TAG_NAME)-win64.zip
deploy:
- provider: GitHub
auth_token:
secure: h+qwIoof/3ET7LOldWwlb6XQLmpxYPuaZL4YcFQ8QyclfBrnywzwzDaSqdE2unPg
artifact: naive-$(APPVEYOR_REPO_TAG_NAME)-win64.zip
prerelease: true
force_update: true
on:
APPVEYOR_REPO_TAG: true