slim down build
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
shimun 2020-04-07 01:55:14 +02:00
parent 0cc5868a87
commit 68cd2c581e
Signed by: shimun
GPG Key ID: E81D8382DC2F971B

View File

@ -6,14 +6,13 @@ steps:
image: rust:1.41.0 image: rust:1.41.0
commands: commands:
- apt update && apt install -y libpam-dev - apt update && apt install -y libpam-dev
- cargo test --debug - cargo test --release
- cargo build --release
- name: build_relase - name: build_relase
image: rust:1.41.0 image: rust:1.41.0
commands: commands:
- apt update && apt install -y libpam-dev
- cargo build --debug
- mkdir -p bin lib - mkdir -p bin lib
- bash -c 'cp $${CARGO_TARGET_DIR:-target}/debug/pam_fido2-cli bin/; cp $${CARGO_TARGET_DIR:-target}/debug/libpam_fido2.so lib/' - bash -c 'cp $${CARGO_TARGET_DIR:-target}/release/pam_fido2-cli bin/; cp $${CARGO_TARGET_DIR:-target}/release/libpam_fido2.so lib/'
- strip bin/* - strip bin/*
- tar cvzf pam_fido2.tar.gz bin lib src Cargo.* - tar cvzf pam_fido2.tar.gz bin lib src Cargo.*
when: when: