stevenarella/appveyor.yml

52 lines
988 B
YAML
Raw Permalink Normal View History

Add Appveyor for Windows continuous integration (#9) * Add appveyor based on https://users.rust-lang.org/t/rust-appveyor-windows-ci-scripts/4437/2 * Add build script in a separate file, based on https://github.com/briansmith/ring/blob/master/mk/appveyor.bat * Add pacman installation packages from https://github.com/Thinkofname/steven/wiki/Compiling-and-or-running#compiling-on-windows * Run msys2_shell from https://github.com/appveyor/ci/issues/352 * Set msys64 and mingw PATH https://github.com/starius/gohere/commit/f00054050602d470165da323d3b86311a068706a * Add --noconfirm option to pacman https://unix.stackexchange.com/questions/52277/pacman-option-to-assume-yes-to-every-question#52278 * Try installing OpenSSL using vcpkg https://www.appveyor.com/docs/lang/cpp/#vc-packaging-tool * Attempt to install OpenSSL using rust-openssl's appveyor.yml https://github.com/sfackler/rust-openssl/blob/master/appveyor.yml * Revert "Attempt to install OpenSSL using rust-openssl's appveyor.yml" This reverts commit 50106089798615f5a6576651fe9ca88af9a43a0d. * Set OPENSSL_DIR to C:\OpenSSL * List contents of C:\OpenSSL * List C:\OpenSSL after installation * No such directory * Use appveyor script from thinkofname https://github.com/Thinkofname/steven/issues/72#issuecomment-433889692 * Enable echo in appveyor.bat * Add exported build script, merge working with existing * Remove environment matrix, nightly-2018-10-24 vs nightly * Remove debug/release because it builds both in one go * Echo the platform variable before forcing it * Set platforms to x86 (not Win32) and x64 * Build x64 first * Only install the proper platform for OpenSSL, not both
2018-10-31 22:22:16 -04:00
version: 1.0.{build}
image: Visual Studio 2017
Add Appveyor for Windows continuous integration (#9) * Add appveyor based on https://users.rust-lang.org/t/rust-appveyor-windows-ci-scripts/4437/2 * Add build script in a separate file, based on https://github.com/briansmith/ring/blob/master/mk/appveyor.bat * Add pacman installation packages from https://github.com/Thinkofname/steven/wiki/Compiling-and-or-running#compiling-on-windows * Run msys2_shell from https://github.com/appveyor/ci/issues/352 * Set msys64 and mingw PATH https://github.com/starius/gohere/commit/f00054050602d470165da323d3b86311a068706a * Add --noconfirm option to pacman https://unix.stackexchange.com/questions/52277/pacman-option-to-assume-yes-to-every-question#52278 * Try installing OpenSSL using vcpkg https://www.appveyor.com/docs/lang/cpp/#vc-packaging-tool * Attempt to install OpenSSL using rust-openssl's appveyor.yml https://github.com/sfackler/rust-openssl/blob/master/appveyor.yml * Revert "Attempt to install OpenSSL using rust-openssl's appveyor.yml" This reverts commit 50106089798615f5a6576651fe9ca88af9a43a0d. * Set OPENSSL_DIR to C:\OpenSSL * List contents of C:\OpenSSL * List C:\OpenSSL after installation * No such directory * Use appveyor script from thinkofname https://github.com/Thinkofname/steven/issues/72#issuecomment-433889692 * Enable echo in appveyor.bat * Add exported build script, merge working with existing * Remove environment matrix, nightly-2018-10-24 vs nightly * Remove debug/release because it builds both in one go * Echo the platform variable before forcing it * Set platforms to x86 (not Win32) and x64 * Build x64 first * Only install the proper platform for OpenSSL, not both
2018-10-31 22:22:16 -04:00
clone_depth: 1
skip_branch_with_pr: true
branches:
only:
- updates
Add Appveyor for Windows continuous integration (#9) * Add appveyor based on https://users.rust-lang.org/t/rust-appveyor-windows-ci-scripts/4437/2 * Add build script in a separate file, based on https://github.com/briansmith/ring/blob/master/mk/appveyor.bat * Add pacman installation packages from https://github.com/Thinkofname/steven/wiki/Compiling-and-or-running#compiling-on-windows * Run msys2_shell from https://github.com/appveyor/ci/issues/352 * Set msys64 and mingw PATH https://github.com/starius/gohere/commit/f00054050602d470165da323d3b86311a068706a * Add --noconfirm option to pacman https://unix.stackexchange.com/questions/52277/pacman-option-to-assume-yes-to-every-question#52278 * Try installing OpenSSL using vcpkg https://www.appveyor.com/docs/lang/cpp/#vc-packaging-tool * Attempt to install OpenSSL using rust-openssl's appveyor.yml https://github.com/sfackler/rust-openssl/blob/master/appveyor.yml * Revert "Attempt to install OpenSSL using rust-openssl's appveyor.yml" This reverts commit 50106089798615f5a6576651fe9ca88af9a43a0d. * Set OPENSSL_DIR to C:\OpenSSL * List contents of C:\OpenSSL * List C:\OpenSSL after installation * No such directory * Use appveyor script from thinkofname https://github.com/Thinkofname/steven/issues/72#issuecomment-433889692 * Enable echo in appveyor.bat * Add exported build script, merge working with existing * Remove environment matrix, nightly-2018-10-24 vs nightly * Remove debug/release because it builds both in one go * Echo the platform variable before forcing it * Set platforms to x86 (not Win32) and x64 * Build x64 first * Only install the proper platform for OpenSSL, not both
2018-10-31 22:22:16 -04:00
platform:
- x64
build_script:
- cmd: >-
echo on
echo AddMessage "PLATFORM is %PLATFORM%"
if "%PLATFORM%" == "x86" set RUST_INSTALL=i686-pc-windows-msvc
if "%PLATFORM%" == "x64" set RUST_INSTALL=x86_64-pc-windows-msvc
echo AddMessage "platform is %platform%"
appveyor AddMessage "Platform rust: %RUST_INSTALL%"
appveyor DownloadFile "https://static.rust-lang.org/dist/rust-1.31.0-%RUST_INSTALL%.exe" -FileName rust-install.exe
Add Appveyor for Windows continuous integration (#9) * Add appveyor based on https://users.rust-lang.org/t/rust-appveyor-windows-ci-scripts/4437/2 * Add build script in a separate file, based on https://github.com/briansmith/ring/blob/master/mk/appveyor.bat * Add pacman installation packages from https://github.com/Thinkofname/steven/wiki/Compiling-and-or-running#compiling-on-windows * Run msys2_shell from https://github.com/appveyor/ci/issues/352 * Set msys64 and mingw PATH https://github.com/starius/gohere/commit/f00054050602d470165da323d3b86311a068706a * Add --noconfirm option to pacman https://unix.stackexchange.com/questions/52277/pacman-option-to-assume-yes-to-every-question#52278 * Try installing OpenSSL using vcpkg https://www.appveyor.com/docs/lang/cpp/#vc-packaging-tool * Attempt to install OpenSSL using rust-openssl's appveyor.yml https://github.com/sfackler/rust-openssl/blob/master/appveyor.yml * Revert "Attempt to install OpenSSL using rust-openssl's appveyor.yml" This reverts commit 50106089798615f5a6576651fe9ca88af9a43a0d. * Set OPENSSL_DIR to C:\OpenSSL * List contents of C:\OpenSSL * List C:\OpenSSL after installation * No such directory * Use appveyor script from thinkofname https://github.com/Thinkofname/steven/issues/72#issuecomment-433889692 * Enable echo in appveyor.bat * Add exported build script, merge working with existing * Remove environment matrix, nightly-2018-10-24 vs nightly * Remove debug/release because it builds both in one go * Echo the platform variable before forcing it * Set platforms to x86 (not Win32) and x64 * Build x64 first * Only install the proper platform for OpenSSL, not both
2018-10-31 22:22:16 -04:00
"./rust-install.exe" /VERYSILENT /NORESTART /DIR="C:\Rust\"
SET PATH=%PATH%;C:\Rust\bin
rustc -V
cargo -V
cargo build
mkdir dist-debug
cp target\debug\stevenarella.exe dist-debug
Add Appveyor for Windows continuous integration (#9) * Add appveyor based on https://users.rust-lang.org/t/rust-appveyor-windows-ci-scripts/4437/2 * Add build script in a separate file, based on https://github.com/briansmith/ring/blob/master/mk/appveyor.bat * Add pacman installation packages from https://github.com/Thinkofname/steven/wiki/Compiling-and-or-running#compiling-on-windows * Run msys2_shell from https://github.com/appveyor/ci/issues/352 * Set msys64 and mingw PATH https://github.com/starius/gohere/commit/f00054050602d470165da323d3b86311a068706a * Add --noconfirm option to pacman https://unix.stackexchange.com/questions/52277/pacman-option-to-assume-yes-to-every-question#52278 * Try installing OpenSSL using vcpkg https://www.appveyor.com/docs/lang/cpp/#vc-packaging-tool * Attempt to install OpenSSL using rust-openssl's appveyor.yml https://github.com/sfackler/rust-openssl/blob/master/appveyor.yml * Revert "Attempt to install OpenSSL using rust-openssl's appveyor.yml" This reverts commit 50106089798615f5a6576651fe9ca88af9a43a0d. * Set OPENSSL_DIR to C:\OpenSSL * List contents of C:\OpenSSL * List C:\OpenSSL after installation * No such directory * Use appveyor script from thinkofname https://github.com/Thinkofname/steven/issues/72#issuecomment-433889692 * Enable echo in appveyor.bat * Add exported build script, merge working with existing * Remove environment matrix, nightly-2018-10-24 vs nightly * Remove debug/release because it builds both in one go * Echo the platform variable before forcing it * Set platforms to x86 (not Win32) and x64 * Build x64 first * Only install the proper platform for OpenSSL, not both
2018-10-31 22:22:16 -04:00
cargo build --release
mkdir dist
cp target\release\stevenarella.exe dist
Add Appveyor for Windows continuous integration (#9) * Add appveyor based on https://users.rust-lang.org/t/rust-appveyor-windows-ci-scripts/4437/2 * Add build script in a separate file, based on https://github.com/briansmith/ring/blob/master/mk/appveyor.bat * Add pacman installation packages from https://github.com/Thinkofname/steven/wiki/Compiling-and-or-running#compiling-on-windows * Run msys2_shell from https://github.com/appveyor/ci/issues/352 * Set msys64 and mingw PATH https://github.com/starius/gohere/commit/f00054050602d470165da323d3b86311a068706a * Add --noconfirm option to pacman https://unix.stackexchange.com/questions/52277/pacman-option-to-assume-yes-to-every-question#52278 * Try installing OpenSSL using vcpkg https://www.appveyor.com/docs/lang/cpp/#vc-packaging-tool * Attempt to install OpenSSL using rust-openssl's appveyor.yml https://github.com/sfackler/rust-openssl/blob/master/appveyor.yml * Revert "Attempt to install OpenSSL using rust-openssl's appveyor.yml" This reverts commit 50106089798615f5a6576651fe9ca88af9a43a0d. * Set OPENSSL_DIR to C:\OpenSSL * List contents of C:\OpenSSL * List C:\OpenSSL after installation * No such directory * Use appveyor script from thinkofname https://github.com/Thinkofname/steven/issues/72#issuecomment-433889692 * Enable echo in appveyor.bat * Add exported build script, merge working with existing * Remove environment matrix, nightly-2018-10-24 vs nightly * Remove debug/release because it builds both in one go * Echo the platform variable before forcing it * Set platforms to x86 (not Win32) and x64 * Build x64 first * Only install the proper platform for OpenSSL, not both
2018-10-31 22:22:16 -04:00
artifacts:
- path: dist
- path: dist-debug