1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-12-11 23:24:55 +00:00
doukutsu-rs/.appveyor.yml

48 lines
1.3 KiB
YAML
Raw Normal View History

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:
- 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
- 7z a ../doukutsu-rs_%target_name%.zip *
- appveyor PushArtifact ../doukutsu-rs_%target_name%.zip