mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2025-04-10 04:30:56 +00:00
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
branches:
|
|
except:
|
|
- dev
|
|
version: '{build}'
|
|
environment:
|
|
matrix:
|
|
- EXTRA_FLAGS: target_cpu="x64"
|
|
BUILD_NAME: naiveproxy-$(APPVEYOR_REPO_TAG_NAME)-win64
|
|
- EXTRA_FLAGS: target_cpu="x86"
|
|
BUILD_NAME: naiveproxy-$(APPVEYOR_REPO_TAG_NAME)-win32
|
|
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 $BUILD_NAME'
|
|
- bash -c 'cp src/out/Release/naive.exe src/config.json LICENSE USAGE.txt $BUILD_NAME'
|
|
- bash -c '7z a $BUILD_NAME.zip $BUILD_NAME'
|
|
test_script:
|
|
- bash -c './tests/basic.sh src/out/Release/naive'
|
|
artifacts:
|
|
- path: $(BUILD_NAME).zip
|
|
deploy:
|
|
- provider: GitHub
|
|
auth_token:
|
|
secure: h+qwIoof/3ET7LOldWwlb6XQLmpxYPuaZL4YcFQ8QyclfBrnywzwzDaSqdE2unPg
|
|
artifact: $(BUILD_NAME).zip
|
|
prerelease: true
|
|
force_update: true
|
|
on:
|
|
APPVEYOR_REPO_TAG: true
|