[visualbndbuild] Add watch hability #110
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows cross-build | |
on: | |
push: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build-windows: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
profile: minimal | |
target: x86_64-pc-windows-gnu | |
override: true | |
- uses: Swatinem/rust-cache@v1 | |
- name: Dependencies | |
run: sudo apt update && sudo apt install libgtk-3-dev libcogl-pango-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libspeechd-dev libxkbcommon-dev libssl-dev mingw-w64 | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
toolchain: nightly | |
use-cross: true | |
args: --target x86_64-pc-windows-gnu --bins --release | |
- uses: ncipollo/release-action@v1 | |
with: | |
token: "${{ secrets.GITHUB_TOKEN }}" | |
allowUpdates: true | |
removeArtifacts: false | |
prerelease: true | |
draft: false | |
tag: latest | |
name: "Development Build" | |
generateReleaseNotes: true | |
artifacts: "target/x86_64-pc-windows-gnu/release/*.exe,target/x86_64-pc-windows-gnu/release/locomotive.exe" | |