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