1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-11-22 05:33:02 +00:00

add appveyor configuration

This commit is contained in:
Alula 2020-12-04 14:41:11 +01:00
parent 05b484c8b7
commit 04cb80f50f
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA

45
.appveyor.yml Normal file
View file

@ -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 *