Skip to content

Commit 9be6f20

Browse files
committed
CICD.yml: Optimize makefile test
1 parent d2db872 commit 9be6f20

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/CICD.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -324,22 +324,19 @@ jobs:
324324
disable_search: true
325325
flags: makefile,${{ matrix.job.os }}
326326
fail_ci_if_error: false
327-
- name: "`make install PROG_PREFIX=uu- PROFILE=release-fast COMPLETIONS=n MANPAGES=n LOCALES=n`"
327+
- name: "`make install MULTICALL=y PROG_PREFIX=uu- PROFILE=release-small COMPLETIONS=n MANPAGES=n LOCALES=n`"
328328
shell: bash
329329
run: |
330330
set -x
331-
DESTDIR=/tmp/ make install PROG_PREFIX=uu- PROFILE=release-fast COMPLETIONS=n MANPAGES=n LOCALES=n
331+
rm -rf /tmp/usr/local/share
332+
DESTDIR=/tmp/ make install MULTICALL=y PROG_PREFIX=uu- PROFILE=release-small COMPLETIONS=n MANPAGES=n LOCALES=n
332333
# Check that utils are built with given profile
333-
./target/release-fast/true
334+
./target/release-small/coreutils --list | grep true
334335
# Check that the progs have prefix
335-
test -f /tmp/usr/local/bin/uu-tty
336+
/tmp/usr/local/bin/uu-true
336337
test -f /tmp/usr/local/libexec/uu-coreutils/libstdbuf.*
337-
# Check that the manpage is not present
338-
! test -f /tmp/usr/local/share/man/man1/uu-whoami.1
339-
# Check that the completion is not present
340-
! test -f /tmp/usr/local/share/zsh/site-functions/_uu-install
341-
! test -f /tmp/usr/local/share/bash-completion/completions/uu-head.bash
342-
! test -f /tmp/usr/local/share/fish/vendor_completions.d/uu-cat.fish
338+
# Check that documents are not present
339+
! test -d /tmp/usr/local/share # Thus, share/{man,completions} are missing
343340
env:
344341
RUST_BACKTRACE: "1"
345342
- name: "`make install`"

0 commit comments

Comments
 (0)