From 09c2738ae16bfb1f5550c82bd4edc7df5e5fd80e Mon Sep 17 00:00:00 2001 From: klzgrad Date: Tue, 2 Apr 2019 22:50:21 +0800 Subject: [PATCH] Update .appveyor.yml --- .appveyor.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index cfdcdf3088..f3aeb99589 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -2,12 +2,9 @@ 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 +platform: + - x64 + - x86 image: Visual Studio 2017 install: - cinst ninja @@ -17,8 +14,9 @@ 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 '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'