Update .appveyor.yml

This commit is contained in:
klzgrad 2019-04-02 22:50:21 +08:00 committed by GitHub
parent 3441467861
commit 09c2738ae1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,12 +2,9 @@ branches:
except: except:
- dev - dev
version: '{build}' version: '{build}'
environment: platform:
matrix: - x64
- EXTRA_FLAGS: target_cpu="x64" - x86
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 image: Visual Studio 2017
install: install:
- cinst ninja - cinst ninja
@ -17,8 +14,9 @@ build_script:
- bash ./tools/import-upstream.sh - bash ./tools/import-upstream.sh
- bash -c 'cd src; ./get-clang.sh' - bash -c 'cd src; ./get-clang.sh'
- bash -c '~/.cargo/bin/sccache -s' - bash -c '~/.cargo/bin/sccache -s'
- bash -c 'cd src; ./build.sh' - bash -c 'cd src; EXTRA_FLAGS=target_cpu=\"$PLATFORM\" ./build.sh'
- bash -c '~/.cargo/bin/sccache -s' - 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 'mkdir $BUILD_NAME'
- bash -c 'cp src/out/Release/naive.exe src/config.json LICENSE USAGE.txt $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' - bash -c '7z a $BUILD_NAME.zip $BUILD_NAME'