Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,14 +295,16 @@ jobs:
mv -t target/ target.cache/release 2>/dev/null || true
- name: "`make nextest`"
shell: bash
run: make nextest CARGOFLAGS="--profile ci --hide-progress-bar"
run: make nextest PROFILE=ci CARGOFLAGS="--hide-progress-bar"
env:
RUST_BACKTRACE: "1"
- name: "`make install COMPLETIONS=n MANPAGES=n`"
- name: "`make install PROFILE=release-fast COMPLETIONS=n MANPAGES=n`"
shell: bash
run: |
set -x
DESTDIR=/tmp/ make PROFILE=release COMPLETIONS=n MANPAGES=n install
DESTDIR=/tmp/ make PROFILE=release-fast COMPLETIONS=n MANPAGES=n install
# Check that utils are built with given profile
test -f target/release-fast/ln
# Check that the utils are present
test -f /tmp/usr/local/bin/tty
# Check that the manpage is not present
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/freebsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ jobs:
cargo nextest run --hide-progress-bar --profile ci --features "\$UUCORE_FEATURES" -p uucore || FAULT=1
fi
# Test building with make
if (test -z "\$FAULT"); then make PROFILE=ci || FAULT=1 ; fi
if (test -z "\$FAULT"); then make nextest PROFILE=ci || FAULT=1 ; fi
# Clean to avoid to rsync back the files
cargo clean
if (test -n "\$FAULT"); then exit 1 ; fi
Expand Down
12 changes: 6 additions & 6 deletions GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# spell-checker:ignore (misc) testsuite runtest findstring (targets) busytest toybox distclean pkgs nextest ; (vars/env) BINDIR BUILDDIR CARGOFLAGS DESTDIR DOCSDIR INSTALLDIR INSTALLEES MULTICALL DATAROOTDIR TESTDIR manpages

# Config options
ifneq (,$(filter install, $(MAKECMDGOALS)))
PROFILE?=release
endif
PROFILE ?= debug
MULTICALL ?= n
COMPLETIONS ?= y
MANPAGES ?= y
LOCALES ?= y
INSTALL ?= install
ifneq (,$(filter install, $(MAKECMDGOALS)))
override PROFILE:=release
endif

# Needed for the foreach loops to split each loop into a separate command
define newline


endef

PROFILE_CMD :=
ifeq ($(PROFILE),release)
PROFILE_CMD = --release
PROFILE_CMD := --profile=${PROFILE}
ifeq ($(PROFILE),debug)
PROFILE_CMD =
endif

RM := rm -rf
Expand Down
Loading