CI fixups and simplifications
continuous-integration/drone the build was successful Details

This commit is contained in:
Olivier 'reivilibre' 2021-11-08 13:14:16 +00:00
parent 6185572b7c
commit 10fc9e4acd
1 changed files with 6 additions and 11 deletions

View File

@ -6,12 +6,10 @@ pipeline:
event: [push, pull_request] event: [push, pull_request]
image: rust:1.56.1-slim image: rust:1.56.1-slim
commands: commands:
- "dir=`echo $DRONE_REPO_NAME-$DRONE_TAG-${DRONE_ARCH/\\//-} | sed s%/%-%`" - apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libolm-dev cmake
- "echo $dir"
#- apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libolm-dev cmake
#- rustup component add clippy #- rustup component add clippy
# TODO clippy one day # TODO clippy one day
#- cargo check - cargo check
buildRelease: buildRelease:
when: when:
@ -19,14 +17,11 @@ pipeline:
tag: v* tag: v*
image: rust:1.56.1-slim image: rust:1.56.1-slim
commands: commands:
#- apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libolm-dev cmake - apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libolm-dev cmake
#- cargo build --release - cargo build --release
- "dir=$DRONE_REPO_NAME-$DRONE_TAG-${DRONE_ARCH/\\//-}" - "qualname=`echo $DRONE_REPO_NAME-$DRONE_TAG-${DRONE_ARCH/\\//-} | sed s%/%-%`"
- "mkdir $dir"
- cp target/release/mxmonzo $dir/
- tar cvf $dir.tar.gz $dir
- mkdir dist - mkdir dist
- mv $dir.tar.gz dist/ - cp target/release/mxmonzo dist/$qualname
uploadRelease: uploadRelease:
when: when: