Merge pull request #8379 from drinkcat/makefiles-locales-after

Makefile: Copy locales _after_ build
This commit is contained in:
Sylvestre Ledru 2025-07-27 08:48:50 +09:00 committed by GitHub
commit 0eecc5f379
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 3 deletions

View file

@ -1,6 +1,6 @@
name: CICD
# spell-checker:ignore (abbrev/names) CICD CodeCOV MacOS MinGW MSVC musl taiki
# spell-checker:ignore (abbrev/names) CACHEDIR CICD CodeCOV MacOS MinGW MSVC musl taiki
# spell-checker:ignore (env/flags) Awarnings Ccodegen Coverflow Cpanic Dwarnings RUSTDOCFLAGS RUSTFLAGS Zpanic CARGOFLAGS
# spell-checker:ignore (jargon) SHAs deps dequote softprops subshell toolchain fuzzers dedupe devel profdata
# spell-checker:ignore (people) Peltoche rivy dtolnay Anson dawidd
@ -278,9 +278,21 @@ jobs:
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.9
- name: "`make build`"
# Also check that target/CACHEDIR.TAG is created on a fresh checkout
shell: bash
run: |
set -x
# Target directory must not exist to start with, otherwise cargo
# will not create target/CACHEDIR.TAG.
if [[ -d target ]]; then
mv -T target target.cache
fi
# Actually do the build
make build
echo "Check that target directory will be ignored by backup tools"
test -f target/CACHEDIR.TAG
# Restore cache for target/release (we only did a debug build)
mv -t target/ target.cache/release 2>/dev/null || true
- name: "`make nextest`"
shell: bash
run: make nextest CARGOFLAGS="--profile ci --hide-progress-bar"
@ -289,6 +301,7 @@ jobs:
- name: "`make install COMPLETIONS=n MANPAGES=n`"
shell: bash
run: |
set -x
DESTDIR=/tmp/ make PROFILE=release COMPLETIONS=n MANPAGES=n install
# Check that the utils are present
test -f /tmp/usr/local/bin/tty
@ -303,6 +316,7 @@ jobs:
- name: "`make install`"
shell: bash
run: |
set -x
DESTDIR=/tmp/ make PROFILE=release install
# Check that the utils are present
test -f /tmp/usr/local/bin/tty
@ -317,6 +331,7 @@ jobs:
- name: "`make uninstall`"
shell: bash
run: |
set -x
DESTDIR=/tmp/ make uninstall
# Check that the utils are not present
! test -f /tmp/usr/local/bin/tty

View file

@ -320,10 +320,10 @@ else
endif
endif
build-coreutils: locales
build-coreutils:
${CARGO} build ${CARGOFLAGS} --features "${EXES} $(BUILD_SPEC_FEATURE)" ${PROFILE_CMD} --no-default-features
build: build-coreutils build-pkgs
build: build-coreutils build-pkgs locales
$(foreach test,$(filter-out $(SKIP_UTILS),$(PROGS)),$(eval $(call TEST_BUSYBOX,$(test))))