Add Windows build to CI
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Alex Page 2022-01-27 19:02:42 -05:00
parent 9dbd723c8c
commit 177c60db73

View file

@ -6,15 +6,23 @@ steps:
image: rust image: rust
commands: commands:
- apt-get update - apt-get update
- apt-get install -y libasound2-dev - apt-get install -y libasound2-dev g++-mingw-w64-x86-64
- rustup target add x86_64-pc-windows-gnu
- rustup toolchain install stable-x86_64-pc-windows-gnu
- cargo build --release --verbose --all - cargo build --release --verbose --all
- cargo build --release --verbose --all --target x86_64-pc-windows-gnu
- mv target/release/kroz target/kroz_linux_x86_64
- mv target/x86_64-pc-windows-gnu/release/kroz.exe target/kroz_win_x86_64.exe
- name: release - name: release
image: plugins/gitea-release image: plugins/gitea-release
settings: settings:
base_url: https://git.valter.cat base_url: https://git.valter.cat
api_key: api_key:
from_secret: gitea_token from_secret: gitea_token
files: target/release/kroz files:
- target/kroz_linux_x86_64
- target/kroz_win_x86_64.exe
prerelease: true
when: when:
event: event:
- tag - tag