pass version with the build
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: Jochen Maes <jochen@sejo-it.be>
This commit is contained in:
Jochen Maes 2023-10-31 06:41:46 +01:00
parent 3b6b704f9d
commit c4f54d9fa7
3 changed files with 5 additions and 4 deletions

View File

@ -24,8 +24,8 @@ steps:
- apk add --no-cache musl-dev gcc-aarch64-none-elf - apk add --no-cache musl-dev gcc-aarch64-none-elf
- rustup target add x86_64-unknown-linux-musl - rustup target add x86_64-unknown-linux-musl
- rustup target add aarch64-unknown-linux-musl - rustup target add aarch64-unknown-linux-musl
- cargo build --target x86_64-unknown-linux-musl --bins -r - cargo build --target x86_64-unknown-linux-musl --bins -r --config 'package.version="${DRONE_TAG##v}"'
- cargo rustc --target aarch64-unknown-linux-musl --bins -r -- -C linker=aarch64-none-elf-gcc - RUSTC_LINKER=aarch64-none-elf-gcc cargo build --target aarch64-unknown-linux-musl --bins -r --config 'package.version="{$DRONE_TAG##v}"'
- cp target/x86_64-unknown-linux-musl/release/mouse /artifacts/mouse-amd64 - cp target/x86_64-unknown-linux-musl/release/mouse /artifacts/mouse-amd64
- cp target/aarch64-unknown-linux-musl/release/mouse /artifacts/mouse-arm64 - cp target/aarch64-unknown-linux-musl/release/mouse /artifacts/mouse-arm64
volumes: volumes:

2
Cargo.lock generated
View File

@ -159,7 +159,7 @@ checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167"
[[package]] [[package]]
name = "mouse" name = "mouse"
version = "0.1.0" version = "0.0.0"
dependencies = [ dependencies = [
"clap", "clap",
"csv", "csv",

View File

@ -2,7 +2,8 @@
name = "mouse" name = "mouse"
authors = ["Jochen Maes <jochen@sejo-it.be>"] authors = ["Jochen Maes <jochen@sejo-it.be>"]
description = "Information gatherer for systems." description = "Information gatherer for systems."
version = "0.1.0" # this will be overwritten during builds! so ignore
version = "0.0.0"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html