Add build linux on Azure

This commit is contained in:
Federico Terzi 2019-09-21 11:43:17 +02:00
parent 0cdc9d4750
commit 96d6b7375c
3 changed files with 11 additions and 2 deletions

View File

@ -14,7 +14,9 @@ jobs:
- script: | - script: |
sudo apt -y update sudo apt -y update
sudo apt install -y libxtst-dev libx11-dev libxdo3 libxdo-dev sudo apt install -y libxtst-dev libx11-dev libxdo3 libxdo-dev
- template: ci/test.yml # Template reference - template: ci/test.yml
- script: ci/build-linux.yml
# - template: ci/deploy.yml
# - job: macOS # - job: macOS
# pool: # pool:

7
ci/build-linux.yml Normal file
View File

@ -0,0 +1,7 @@
steps:
- script: |
cargo build --release
VER=$(cat Cargo.toml| grep version -m 1 | awk -F '"' '{ print $2 }')
cd target/release/
tar czf "espanso-linux-$VER.tar.gz" espanso
displayName: Cargo build and packaging

View File

@ -5,5 +5,5 @@ steps:
- template: install-rust.yml - template: install-rust.yml
- script: | - script: |
cargo test cargo test --release
displayName: cargo test displayName: cargo test