Skip to content

Commit

Permalink
Fix package build in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vruello committed Sep 7, 2024
1 parent e490ca4 commit ef81edb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
docker build -t openwec-builder:debian-bookworm -f Dockerfile-debian-bookworm . && \
docker run -t -u $(id -u):$(id -g) -v $(pwd)/../:/SRC \
--env CARGO_HOME=/SRC/target/.cargo openwec-builder:debian-bookworm \
cargo deb --manifest-path=./common/Cargo.toml -- --locked && \
sh -c "cargo build --release --locked && \
cargo deb --no-build --manifest-path=./common/Cargo.toml" && \
for i in ../target/debian/*.deb; do mv "$i" "${i/.deb/_deb12.deb}"; done;
- name: Upload debian bookworm package
uses: actions/upload-artifact@v4
Expand All @@ -34,7 +35,8 @@ jobs:
docker build -t openwec-builder:debian-bullseye -f Dockerfile-debian-bullseye . && \
docker run -t -u $(id -u):$(id -g) -v $(pwd)/../:/SRC \
--env CARGO_HOME=/SRC/target/.cargo openwec-builder:debian-bullseye \
cargo deb --manifest-path=./common/Cargo.toml -- --locked && \
sh -c "cargo build --release --locked && \
cargo deb --no-build --manifest-path=./common/Cargo.toml" && \
for i in ../target/debian/*.deb; do mv "$i" "${i/.deb/_deb11.deb}"; done;
- name: Upload debian bullseye package
uses: actions/upload-artifact@v4
Expand Down
2 changes: 2 additions & 0 deletions common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.3.0"
edition = "2021"
# Used by cargo-deb
homepage = "https://github.com/cea-sec/openwec"
description = "A Windows Event Collector server using WEF for GNU/Linux"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down Expand Up @@ -35,6 +36,7 @@ serial_test = "3.0.0"
name="openwec"
maintainer = "CEA"
copyright = "2023, CEA"
license-file = ["../LICENSE", "0"]
extended-description = """\
An implementation of a Windows Event Collector \
server running on GNU/Linux."""
Expand Down

0 comments on commit ef81edb

Please sign in to comment.