Skip to content

Commit

Permalink
Add deb pkg steps to CIi - fix 1
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspustina committed Feb 3, 2020
1 parent 98bb8de commit 35be050
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,19 @@ stages:
pool:
vmImage: $(imageName)
steps:
- template: templates/install_rust.yml
parameters:
rustup_toolchain: stable
- template: templates/install_dependencies.yml
- template: templates/version_information.yml
- script: cargo build --all --all-features --release
displayName: Cargo build Release
- script: |
PGK_VERSION=$(git symbolic-ref -q --short HEAD || git describe --tags --exact-match) && \
cd distribution/deb && \
BIN_DIR=../../target/release ARCH=${ARCHNAME} VERSION=${PGK_VERSION} DIST=${UBUNTUNAME} make package && \
echo "##vso[task.setvariable variable=deb_pkg]distribution/deb/${CRATE_NAME}-${PGK_VERSION}-${UBUNTUNAME}-${ARCHNAME}.deb
displayName: Create Debian Package
- publish: $(Build.SourcesDirectory)/$(deb_pkg)
artifact: Deb_Pkg
displayName: Store Debian Package
Expand Down

0 comments on commit 35be050

Please sign in to comment.