Skip to content

Commit 8efb2e2

Browse files
authored
Merge branch 'main' into mv-exchange-flag
2 parents de4b237 + e48c4a7 commit 8efb2e2

File tree

274 files changed

+3784
-5006
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

274 files changed

+3784
-5006
lines changed

.github/workflows/CICD.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: CICD
22

3-
# spell-checker:ignore (abbrev/names) CICD CodeCOV MacOS MinGW MSVC musl taiki
3+
# spell-checker:ignore (abbrev/names) CACHEDIR CICD CodeCOV MacOS MinGW MSVC musl taiki
44
# spell-checker:ignore (env/flags) Awarnings Ccodegen Coverflow Cpanic Dwarnings RUSTDOCFLAGS RUSTFLAGS Zpanic CARGOFLAGS
55
# spell-checker:ignore (jargon) SHAs deps dequote softprops subshell toolchain fuzzers dedupe devel profdata
66
# spell-checker:ignore (people) Peltoche rivy dtolnay Anson dawidd
@@ -278,9 +278,21 @@ jobs:
278278
- name: Run sccache-cache
279279
uses: mozilla-actions/[email protected]
280280
- name: "`make build`"
281+
# Also check that target/CACHEDIR.TAG is created on a fresh checkout
281282
shell: bash
282283
run: |
284+
set -x
285+
# Target directory must not exist to start with, otherwise cargo
286+
# will not create target/CACHEDIR.TAG.
287+
if [[ -d target ]]; then
288+
mv -T target target.cache
289+
fi
290+
# Actually do the build
283291
make build
292+
echo "Check that target directory will be ignored by backup tools"
293+
test -f target/CACHEDIR.TAG
294+
# Restore cache for target/release (we only did a debug build)
295+
mv -t target/ target.cache/release 2>/dev/null || true
284296
- name: "`make nextest`"
285297
shell: bash
286298
run: make nextest CARGOFLAGS="--profile ci --hide-progress-bar"
@@ -289,6 +301,7 @@ jobs:
289301
- name: "`make install COMPLETIONS=n MANPAGES=n`"
290302
shell: bash
291303
run: |
304+
set -x
292305
DESTDIR=/tmp/ make PROFILE=release COMPLETIONS=n MANPAGES=n install
293306
# Check that the utils are present
294307
test -f /tmp/usr/local/bin/tty
@@ -303,6 +316,7 @@ jobs:
303316
- name: "`make install`"
304317
shell: bash
305318
run: |
319+
set -x
306320
DESTDIR=/tmp/ make PROFILE=release install
307321
# Check that the utils are present
308322
test -f /tmp/usr/local/bin/tty
@@ -317,6 +331,7 @@ jobs:
317331
- name: "`make uninstall`"
318332
shell: bash
319333
run: |
334+
set -x
320335
DESTDIR=/tmp/ make uninstall
321336
# Check that the utils are not present
322337
! test -f /tmp/usr/local/bin/tty

0 commit comments

Comments
 (0)