Skip to content

Commit 6e2b968

Browse files
committed
CICD.yml: Optimize makefile test
1 parent a08a79d commit 6e2b968

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/CICD.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ jobs:
269269
env:
270270
SCCACHE_GHA_ENABLED: "true"
271271
RUSTC_WRAPPER: "sccache"
272+
CARGO_INCREMENTAL: 0
272273
strategy:
273274
fail-fast: false
274275
matrix:
@@ -321,22 +322,19 @@ jobs:
321322
disable_search: true
322323
flags: makefile,${{ matrix.job.os }}
323324
fail_ci_if_error: false
324-
- name: "`make install PROG_PREFIX=uu- PROFILE=release-fast COMPLETIONS=n MANPAGES=n LOCALES=n`"
325+
- name: "`make install MULTICALL=y PROG_PREFIX=uu- PROFILE=release-small COMPLETIONS=n MANPAGES=n LOCALES=n`"
325326
shell: bash
326327
run: |
327328
set -x
328-
DESTDIR=/tmp/ make install PROG_PREFIX=uu- PROFILE=release-fast COMPLETIONS=n MANPAGES=n LOCALES=n
329+
rm -rf /tmp/usr/local/share
330+
DESTDIR=/tmp/ make install MULTICALL=y PROG_PREFIX=uu- PROFILE=release-small COMPLETIONS=n MANPAGES=n LOCALES=n
329331
# Check that utils are built with given profile
330-
./target/release-fast/true
332+
./target/release-small/true
331333
# Check that the progs have prefix
332-
test -f /tmp/usr/local/bin/uu-tty
334+
/tmp/usr/local/bin/uu-true
333335
test -f /tmp/usr/local/libexec/uu-coreutils/libstdbuf.*
334-
# Check that the manpage is not present
335-
! test -f /tmp/usr/local/share/man/man1/uu-whoami.1
336-
# Check that the completion is not present
337-
! test -f /tmp/usr/local/share/zsh/site-functions/_uu-install
338-
! test -f /tmp/usr/local/share/bash-completion/completions/uu-head.bash
339-
! test -f /tmp/usr/local/share/fish/vendor_completions.d/uu-cat.fish
336+
# Check that documents are not present
337+
! test -d /tmp/usr/local/share # Thus, share/{man,completions} are missing
340338
env:
341339
RUST_BACKTRACE: "1"
342340
- name: "`make install`"

0 commit comments

Comments
 (0)