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:
|
||||
image: rust:1.62
|
||||
commands:
|
||||
- cargo build
|
||||
- "cargo build"
|
||||
|
||||
build_release:
|
||||
image: rust:1.62
|
||||
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"
|
||||
when:
|
||||
event: tag
|
||||
@ -20,6 +23,8 @@ pipeline:
|
||||
base_url: https://git.metaunix.net
|
||||
files:
|
||||
- "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}"
|
||||
when:
|
||||
event: tag
|
||||
|
17
Cargo.toml
17
Cargo.toml
@ -1,14 +1,27 @@
|
||||
[package]
|
||||
name = "hardware-tests"
|
||||
description = "Bit Goblin PC hardware test suite."
|
||||
version = "0.2.2"
|
||||
edition = "2021"
|
||||
readme = "README.md"
|
||||
license = "BSD 2-Clause"
|
||||
license-file = "LICENSE"
|
||||
authors = ["Gregory Ballantine <gballantine@bitgoblin.tech>"]
|
||||
|
||||
[[bin]]
|
||||
name = "bgbench"
|
||||
path = "src/main.rs"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
chrono = "0.4.20"
|
||||
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