espanso/ci/build-linux.yml
2020-01-26 22:13:07 +01:00

18 lines
596 B
YAML

steps:
- script: |
cargo build --release
cd target/release/
tar czf "espanso-linux.tar.gz" espanso
cd ../..
cp target/release/espanso-*.gz .
sha256sum espanso-*.gz | awk '{ print $1 }' > espanso-linux-sha256.txt
ls -la
displayName: "Cargo build and packaging for Linux"
- script: |
cargo install cargo-deb
cargo deb
cp target/release/debian/espanso*amd64.deb espanso-debian-amd64.deb
sha256sum espanso-*amd64.deb | awk '{ print $1 }' > espanso-debian-amd64-sha256.txt
ls -la
displayName: "Packaging deb package"