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

47 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
2021-02-10 14:24:47 +00:00
# - channel: stable
# target: i686-pc-windows-msvc
# target_name: win32
# 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:
2021-02-05 22:47:13 +00:00
- '%USERPROFILE%\.cache\sccache -> Cargo.toml'
- '%USERPROFILE%\.cargo -> Cargo.toml'
- 'target -> Cargo.toml'
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