diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 0000000..620a7f5 --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,45 @@ +version: "0.1.0.{build}-{branch}" + +os: Visual Studio 2019 + +environment: + global: + PROJECT_NAME: doukutsu-rs + matrix: + - channel: stable + target: x86_64-pc-windows-msvc + target_name: win64 + - channel: stable + target: i686-pc-windows-msvc + target_name: win32 + +install: + - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe + - rustup-init -yv --default-toolchain %channel% --default-host %target% + - set PATH=%PATH%;%USERPROFILE%\.cargo\bin + - rustup update + - rustc -vV + - cargo -vV + +build: false + +cache: + - '%USERPROFILE%\.cache\sccache -> rust-toolchain,.appveyor.yml' + - '%USERPROFILE%\.cargo -> rust-toolchain,.appveyor.yml' + - '%USERPROFILE%\.rustup -> rust-toolchain,.appveyor.yml' + - 'target -> rust-toolchain,.appveyor.yml' + +#test_script: +# - cargo build --verbose --all +# - cargo test --verbose --all --no-fail-fast + +before_deploy: + - cargo build --release --bin doukutsu-rs + - mkdir release + - copy target\release\doukutsu-rs.exe release + - cd release + - appveyor DownloadFile https://github.com/doukutsu-rs/game-data/archive/master.zip -FileName ../game-data.zip + - 7z x ../game-data.zip + - rename game-data-master data + - 7z a ../doukutsu-rs_%APPVEYOR_BUILD_VERSION%_%target_name%.zip * + - appveyor PushArtifact ../doukutsu-rs_%APPVEYOR_BUILD_VERSION%_%target_name%.zip *