From 96d6b7375c8f2160c688e590002adcabef5b662b Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Sat, 21 Sep 2019 11:43:17 +0200 Subject: [PATCH] Add build linux on Azure --- azure-pipelines.yml | 4 +++- ci/build-linux.yml | 7 +++++++ ci/test.yml | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 ci/build-linux.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 01804fb..c89a73a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,7 +14,9 @@ jobs: - script: | sudo apt -y update 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 # pool: diff --git a/ci/build-linux.yml b/ci/build-linux.yml new file mode 100644 index 0000000..d142488 --- /dev/null +++ b/ci/build-linux.yml @@ -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 \ No newline at end of file diff --git a/ci/test.yml b/ci/test.yml index ba5d3f8..1436b3a 100644 --- a/ci/test.yml +++ b/ci/test.yml @@ -5,5 +5,5 @@ steps: - template: install-rust.yml - script: | - cargo test + cargo test --release displayName: cargo test \ No newline at end of file