mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 01:36:09 +03:00
36 lines
997 B
YAML
36 lines
997 B
YAML
branches:
|
|
except:
|
|
- dev
|
|
version: '{build}'
|
|
platform:
|
|
- x64
|
|
- x86
|
|
image: Visual Studio 2019
|
|
install:
|
|
- cinst ninja
|
|
cache:
|
|
- '%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; EXTRA_FLAGS=target_cpu=\"$Platform\" ./build.sh'
|
|
- bash -c '~/.cargo/bin/sccache -s'
|
|
- ps: $env:BUILD_NAME="naiveproxy-$env:APPVEYOR_REPO_TAG_NAME-win-$env:PLATFORM"
|
|
- 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
|