Skip to content

Commit 29f27e4

Browse files
committed
ci: add RPM build
1 parent 5d595bb commit 29f27e4

2 files changed

Lines changed: 27 additions & 11 deletions

File tree

.github/workflows/release.yaml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,29 @@ env:
1010
RUST_BACKTRACE: 1
1111

1212
jobs:
13-
test:
14-
uses: semantic-release-action/rust/.github/workflows/ci.yml@v5
15-
1613
release:
17-
uses: semantic-release-action/rust/.github/workflows/release-binary.yml@v5
14+
runs-on: ubuntu-latest
1815
permissions:
1916
contents: write
2017
packages: write
21-
with:
22-
toolchain: stable
23-
targets: |
24-
aarch64-apple-darwin
25-
x86_64-unknown-linux-gnu
26-
secrets:
27-
cargo-registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
18+
19+
steps:
20+
21+
- name: Semantic Release
22+
uses: semantic-release-action/rust/.github/workflows/release-binary.yml@v5
23+
with:
24+
toolchain: stable
25+
targets: |
26+
aarch64-apple-darwin
27+
x86_64-unknown-linux-gnu
28+
cargo-registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
29+
30+
- name: Build RPM package
31+
run: |
32+
cargo install cargo-generate-rpm
33+
cargo generate-rpm
34+
35+
36+
37+
38+

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ license = "Apache-2.0"
99
version = "1.0.1"
1010
edition = "2024"
1111

12+
[package.metadata.generate-rpm]
13+
assets = [
14+
{ source = "target/release/bec_log_ingestor", dest = "/usr/local/bin/bec_log_ingestor", mode = "755" },
15+
]
16+
1217
[dependencies]
1318
chrono = "0.4.41"
1419
clap = { version = "4.5.42", features = ["derive"] }

0 commit comments

Comments
 (0)