Skip to content

Commit

Permalink
Build min targets without systemd enabled
Browse files Browse the repository at this point in the history
Make sure this works, for completeness' sake.

Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Feb 8, 2024
1 parent 7bc961d commit 2cc651d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/fedora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ jobs:
- task: PROFILEDIR=debug make -f Makefile build-min
toolchain: 1.75.0 # CURRENT DEVELOPMENT RUST TOOLCHAIN
components: cargo
- task: PROFILEDIR=debug make -f Makefile build-min-no-systemd
toolchain: 1.75.0 # CURRENT DEVELOPMENT RUST TOOLCHAIN
components: cargo
- task: PROFILEDIR=debug make -f Makefile build-no-ipc
toolchain: 1.75.0 # CURRENT DEVELOPMENT RUST TOOLCHAIN
components: cargo
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ jobs:
- task: PROFILEDIR=debug make -f Makefile build-min
toolchain: 1.75.0 # CURRENT DEVELOPMENT RUST TOOLCHAIN
components: cargo
- task: PROFILEDIR=debug make -f Makefile build-min-no-systemd
toolchain: 1.75.0 # CURRENT DEVELOPMENT RUST TOOLCHAIN
components: cargo
- task: PROFILEDIR=debug make -f Makefile build-no-ipc
toolchain: 1.75.0 # CURRENT DEVELOPMENT RUST TOOLCHAIN
components: cargo
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,14 @@ build-min:
--bin=stratis-min --bin=stratisd-min --bin=stratis-utils \
${SYSTEMD_FEATURES} ${TARGET_ARGS}

## Build min targets without systemd support enabled
build-min-no-systemd:
PKG_CONFIG_ALLOW_CROSS=1 \
RUSTFLAGS="${DENY}" \
cargo ${BUILD} ${RELEASE_FLAG} \
--bin=stratis-min --bin=stratisd-min --bin=stratis-utils \
${MIN_FEATURES} ${TARGET_ARGS}

## Build stratisd-min and stratis-min for early userspace
build-no-ipc:
PKG_CONFIG_ALLOW_CROSS=1 \
Expand Down

0 comments on commit 2cc651d

Please sign in to comment.