Added package info for packaging
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
94218af170
commit
182d9b3cb4
@ -2,12 +2,15 @@ pipeline:
|
|||||||
test_build:
|
test_build:
|
||||||
image: rust:1.62
|
image: rust:1.62
|
||||||
commands:
|
commands:
|
||||||
- cargo build
|
- "cargo build"
|
||||||
|
|
||||||
build_release:
|
build_release:
|
||||||
image: rust:1.62
|
image: rust:1.62
|
||||||
commands:
|
commands:
|
||||||
- cargo build --release
|
- "cargo install cargo-deb cargo-generate-rpm"
|
||||||
|
- "cargo build --release"
|
||||||
|
- "cargo deb"
|
||||||
|
- "cargo generate-rpm"
|
||||||
- "mv target/release/bgbench target/release/bgbench-${CI_COMMIT_TAG}-linux-x86_64"
|
- "mv target/release/bgbench target/release/bgbench-${CI_COMMIT_TAG}-linux-x86_64"
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
@ -20,6 +23,8 @@ pipeline:
|
|||||||
base_url: https://git.metaunix.net
|
base_url: https://git.metaunix.net
|
||||||
files:
|
files:
|
||||||
- "target/release/*${CI_COMMIT_TAG}-linux-x86_64"
|
- "target/release/*${CI_COMMIT_TAG}-linux-x86_64"
|
||||||
|
- "target/debian/hardware-tests_${CI_COMMIT_TAG}*.deb"
|
||||||
|
- "target/generate-rpm/hardware-tests-${CI_COMMIT_TAG}*.rpm"
|
||||||
title: "${CI_COMMIT_TAG}"
|
title: "${CI_COMMIT_TAG}"
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
17
Cargo.toml
17
Cargo.toml
@ -1,14 +1,27 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "hardware-tests"
|
name = "hardware-tests"
|
||||||
|
description = "Bit Goblin PC hardware test suite."
|
||||||
version = "0.2.2"
|
version = "0.2.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
readme = "README.md"
|
||||||
|
license = "BSD 2-Clause"
|
||||||
|
license-file = "LICENSE"
|
||||||
|
authors = ["Gregory Ballantine <gballantine@bitgoblin.tech>"]
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "bgbench"
|
name = "bgbench"
|
||||||
path = "src/main.rs"
|
path = "src/main.rs"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
chrono = "0.4.20"
|
chrono = "0.4.20"
|
||||||
clap = { version = "3.2.16", features = ["derive"] }
|
clap = { version = "3.2.16", features = ["derive"] }
|
||||||
|
|
||||||
|
[package.metadata.deb]
|
||||||
|
depends = "fio"
|
||||||
|
|
||||||
|
[package.metadata.generate-rpm]
|
||||||
|
assets = [
|
||||||
|
{ source = "target/release/bgbench", dest = "/usr/bin/bgbench", mode = "755" },
|
||||||
|
]
|
||||||
|
[package.metadata.generate-rpm.requires]
|
||||||
|
fio = "*"
|
||||||
|
Loading…
Reference in New Issue
Block a user