2020-12-04 13:41:11 +00:00
|
|
|
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
|
2020-12-04 14:31:37 +00:00
|
|
|
job_name: windows-x64
|
2020-12-04 13:41:11 +00:00
|
|
|
- channel: stable
|
|
|
|
target: i686-pc-windows-msvc
|
|
|
|
target_name: win32
|
2020-12-04 14:31:37 +00:00
|
|
|
job_name: windows-x32
|
2020-12-04 13:41:11 +00:00
|
|
|
|
|
|
|
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
|
2020-12-04 13:50:13 +00:00
|
|
|
- rustup default %channel%
|
2020-12-04 13:41:11 +00:00
|
|
|
- rustc -vV
|
|
|
|
- cargo -vV
|
|
|
|
|
|
|
|
cache:
|
2020-12-04 13:50:13 +00:00
|
|
|
- '%USERPROFILE%\.cache\sccache -> .appveyor.yml'
|
|
|
|
- '%USERPROFILE%\.cargo -> .appveyor.yml'
|
|
|
|
- '%USERPROFILE%\.rustup -> .appveyor.yml'
|
|
|
|
- 'target -> .appveyor.yml'
|
2020-12-04 13:41:11 +00:00
|
|
|
|
|
|
|
#test_script:
|
|
|
|
# - cargo build --verbose --all
|
|
|
|
# - cargo test --verbose --all --no-fail-fast
|
|
|
|
|
2020-12-04 13:44:31 +00:00
|
|
|
build_script:
|
2020-12-06 15:41:12 +00:00
|
|
|
- set DRS_BUILD_VERSION_OVERRIDE=%APPVEYOR_BUILD_VERSION%
|
2020-12-04 13:41:11 +00:00
|
|
|
- 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
|
2020-12-04 13:54:21 +00:00
|
|
|
- 7z a ../doukutsu-rs_%target_name%.zip *
|
|
|
|
- appveyor PushArtifact ../doukutsu-rs_%target_name%.zip
|