Skip to content
Snippets Groups Projects
Commit 1d1f5d8a authored by clonejo's avatar clonejo
Browse files

build release binary with gitlab ci

parent 6c5f6f80
Branches release
Tags v0.2.1
No related merge requests found
Pipeline #
image: gcc
image: rust
stages:
- build
- test
- release
job:
stage: build
before_script:
- uname -a
- DEBIAN_FRONTEND=noninteractive apt-get update -y
- DEBIAN_FRONTEND=noninteractive apt-get install -y curl mktemp build-essential
test:
stage: test
script:
- RUST_BACKTRACE=1 cargo test --release
except:
- tags
- release
cache:
paths:
- target
release:
stage: release
script:
- uname -a
- DEBIAN_FRONTEND=noninteractive apt-get update -y
- DEBIAN_FRONTEND=noninteractive apt-get install -y coreutils curl mktemp file tar sed sudo build-essential
- curl -sSf https://static.rust-lang.org/rustup.sh | sh
- cargo build --release
\ No newline at end of file
- cargo build --release
- mv target/release/mqttnc .
only:
- tags
- release
cache:
paths:
- target
artifacts:
name: "mqttnc-${CI_COMMIT_REF_NAME}"
paths:
- mqttnc
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment