2022-01-23 17:17:01 +00:00
|
|
|
version: "0.99.0.{build}-{branch}"
|
2020-12-04 13:41:11 +00:00
|
|
|
|
2022-02-28 17:53:38 +00:00
|
|
|
skip_commits:
|
|
|
|
files:
|
|
|
|
- README.md
|
|
|
|
|
2020-12-04 13:41:11 +00:00
|
|
|
environment:
|
|
|
|
global:
|
|
|
|
PROJECT_NAME: doukutsu-rs
|
|
|
|
matrix:
|
2022-02-28 17:53:38 +00:00
|
|
|
- channel: stable
|
2021-08-13 02:45:27 +00:00
|
|
|
target: x86_64-pc-windows-msvc
|
|
|
|
target_name: win64
|
|
|
|
job_name: windows-x64
|
|
|
|
appveyor_build_worker_image: Visual Studio 2019
|
2021-02-10 14:24:47 +00:00
|
|
|
# - channel: stable
|
|
|
|
# target: i686-pc-windows-msvc
|
|
|
|
# target_name: win32
|
|
|
|
# job_name: windows-x32
|
2022-03-21 23:36:03 +00:00
|
|
|
- channel: stable
|
|
|
|
target: x86_64-unknown-linux-gnu
|
|
|
|
target_name: linux
|
|
|
|
job_name: linux-x64
|
|
|
|
appveyor_build_worker_image: Ubuntu
|
2022-02-28 17:53:38 +00:00
|
|
|
- channel: stable
|
2021-08-13 02:09:22 +00:00
|
|
|
target: x86_64-apple-darwin
|
2022-03-22 02:15:43 +00:00
|
|
|
target_name: mac-intel
|
2021-08-13 01:46:41 +00:00
|
|
|
job_name: mac-x64
|
2022-02-28 18:13:27 +00:00
|
|
|
appveyor_build_worker_image: macos-monterey
|
2022-03-22 02:15:43 +00:00
|
|
|
- channel: stable
|
|
|
|
target: aarch64-apple-darwin
|
|
|
|
target_name: mac-m1
|
|
|
|
job_name: mac-arm64
|
|
|
|
appveyor_build_worker_image: macos-monterey
|
2021-08-13 01:46:41 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
|
|
|
|
for:
|
|
|
|
-
|
|
|
|
matrix:
|
|
|
|
only:
|
|
|
|
- appveyor_build_worker_image: Visual Studio 2019
|
|
|
|
|
|
|
|
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
|
|
|
|
- rustup default %channel%
|
|
|
|
- rustc -vV
|
|
|
|
- cargo -vV
|
|
|
|
|
|
|
|
cache:
|
2022-03-22 02:15:43 +00:00
|
|
|
- '%USERPROFILE%\.cache -> Cargo.toml'
|
|
|
|
- '%USERPROFILE%\.cargo\bin -> Cargo.toml'
|
|
|
|
- '%USERPROFILE%\.cargo\registry\index -> Cargo.toml'
|
|
|
|
- '%USERPROFILE%\.cargo\registry\cache -> Cargo.toml'
|
|
|
|
- '%USERPROFILE%\.cargo\git\db -> Cargo.toml'
|
|
|
|
- '%USERPROFILE%\.rustup -> Cargo.toml'
|
2021-08-13 01:46:41 +00:00
|
|
|
- 'target -> Cargo.toml'
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
- set DRS_BUILD_VERSION_OVERRIDE=%APPVEYOR_BUILD_VERSION%
|
2022-02-28 18:31:04 +00:00
|
|
|
- set CARGO_INCREMENTAL=1
|
2021-08-13 01:46:41 +00:00
|
|
|
- cargo build --release --bin doukutsu-rs
|
|
|
|
- mkdir release
|
2022-02-28 17:53:38 +00:00
|
|
|
- copy LICENSE release\LICENSE
|
|
|
|
- copy target\release\doukutsu-rs.exe release\doukutsu-rs.x86_64.exe
|
2021-08-13 01:46:41 +00:00
|
|
|
- cd release
|
|
|
|
- 7z a ../doukutsu-rs_%target_name%.zip *
|
|
|
|
- appveyor PushArtifact ../doukutsu-rs_%target_name%.zip
|
|
|
|
|
|
|
|
-
|
|
|
|
matrix:
|
|
|
|
only:
|
2022-02-28 18:13:27 +00:00
|
|
|
- appveyor_build_worker_image: macos-monterey
|
2021-08-13 01:46:41 +00:00
|
|
|
|
|
|
|
install:
|
2022-03-22 02:01:08 +00:00
|
|
|
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -yv --default-toolchain $channel
|
2021-08-13 01:46:41 +00:00
|
|
|
- export PATH=$PATH:$HOME/.cargo/bin
|
|
|
|
- rustup update
|
|
|
|
- rustup default $channel
|
2022-03-22 02:01:08 +00:00
|
|
|
- rustup target add $target
|
2021-08-13 01:46:41 +00:00
|
|
|
- rustc -vV
|
|
|
|
- cargo -vV
|
2022-03-22 17:18:53 +00:00
|
|
|
- cargo install cargo-bundle --force
|
2021-08-13 01:46:41 +00:00
|
|
|
|
|
|
|
cache:
|
2022-03-22 02:15:43 +00:00
|
|
|
- '$HOME/.cache -> Cargo.toml'
|
|
|
|
- '$HOME/.cargo/bin -> Cargo.toml'
|
|
|
|
- '$HOME/.cargo/registry/index -> Cargo.toml'
|
|
|
|
- '$HOME/.cargo/registry/cache -> Cargo.toml'
|
|
|
|
- '$HOME/.cargo/git/db -> Cargo.toml'
|
|
|
|
- '$HOME/.rustup -> Cargo.toml'
|
2021-08-13 01:46:41 +00:00
|
|
|
- 'target -> Cargo.toml'
|
2020-12-04 13:41:11 +00:00
|
|
|
|
2021-08-13 01:46:41 +00:00
|
|
|
build_script:
|
|
|
|
- export DRS_BUILD_VERSION_OVERRIDE=$APPVEYOR_BUILD_VERSION
|
2022-03-22 02:01:08 +00:00
|
|
|
- CARGO_INCREMENTAL=1 cargo bundle --release --target $target
|
2021-08-13 01:46:41 +00:00
|
|
|
- mkdir release
|
2022-02-28 17:53:38 +00:00
|
|
|
- cp LICENSE ./release/LICENSE
|
2022-03-22 02:01:08 +00:00
|
|
|
- cp -a target/$target/release/bundle/osx/doukutsu-rs.app ./release/doukutsu-rs.app
|
2021-08-13 01:46:41 +00:00
|
|
|
- cd release
|
2022-03-22 16:56:57 +00:00
|
|
|
- codesign -s - -f ./doukutsu-rs.app/Contents/MacOS/doukutsu-rs
|
2021-08-13 01:46:41 +00:00
|
|
|
- 7z a ../doukutsu-rs_$target_name.zip *
|
|
|
|
- appveyor PushArtifact ../doukutsu-rs_$target_name.zip
|
2022-02-28 17:53:38 +00:00
|
|
|
|
|
|
|
-
|
|
|
|
matrix:
|
|
|
|
only:
|
|
|
|
- appveyor_build_worker_image: Ubuntu
|
|
|
|
|
|
|
|
install:
|
|
|
|
- sudo apt-get update && sudo apt-get -y install libasound2-dev libudev-dev libgl1-mesa-dev pkg-config
|
|
|
|
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -yv --default-toolchain $channel --default-host $target
|
|
|
|
- export PATH=$PATH:$HOME/.cargo/bin
|
|
|
|
- rustup update
|
|
|
|
- rustup default $channel
|
|
|
|
- rustc -vV
|
|
|
|
- cargo -vV
|
|
|
|
|
|
|
|
cache:
|
2022-03-22 02:15:43 +00:00
|
|
|
- '$HOME/.cache -> Cargo.toml'
|
|
|
|
- '$HOME/.cargo/bin -> Cargo.toml'
|
|
|
|
- '$HOME/.cargo/registry/index -> Cargo.toml'
|
|
|
|
- '$HOME/.cargo/registry/cache -> Cargo.toml'
|
|
|
|
- '$HOME/.cargo/git/db -> Cargo.toml'
|
|
|
|
- '$HOME/.rustup -> Cargo.toml'
|
2022-02-28 17:53:38 +00:00
|
|
|
- 'target -> Cargo.toml'
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
- export DRS_BUILD_VERSION_OVERRIDE=$APPVEYOR_BUILD_VERSION
|
2022-02-28 22:33:29 +00:00
|
|
|
- RUSTFLAGS="-C link-arg=-s" CARGO_INCREMENTAL=1 cargo build --release --bin doukutsu-rs
|
2022-02-28 17:53:38 +00:00
|
|
|
- mkdir release
|
|
|
|
- cp LICENSE ./release/LICENSE
|
|
|
|
- cp -a target/release/doukutsu-rs ./release/doukutsu-rs.x86_64.elf
|
|
|
|
- cd release
|
|
|
|
- 7z a ../doukutsu-rs_$target_name.zip *
|
|
|
|
- appveyor PushArtifact ../doukutsu-rs_$target_name.zip
|