diff --git a/.woodpecker.yml b/.woodpecker.yml index c58d7b2..3d33d2e 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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: