Skip to content

Commit 5df1672

Browse files
authored
Add min test for cross build
1 parent 738e4eb commit 5df1672

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/CICD.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@ jobs:
269269
with:
270270
persist-credentials: false
271271
- uses: dtolnay/rust-toolchain@stable
272+
- uses: dtolnay/rust-toolchain@stable
273+
with:
274+
target: aarch64-unknown-linux-gnu
272275
- uses: taiki-e/install-action@nextest
273276
- uses: Swatinem/rust-cache@v2
274277
- name: Install/setup prerequisites
@@ -287,7 +290,10 @@ jobs:
287290
if [[ -d target ]]; then
288291
mv -T target target.cache
289292
fi
290-
# Actually do the build
293+
# Minimal cross-built with native uudoc
294+
make UTILS=true RUSTC_ARCH="--target aarch64-unknown-linux-gnu"
295+
./target/debug/uudoc manpage
296+
# build (host)
291297
make build
292298
echo "Check that target directory will be ignored by backup tools"
293299
test -f target/CACHEDIR.TAG

GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ RM := rm -rf
2727
# Binaries
2828
CARGO ?= cargo
2929
CARGOFLAGS ?=
30-
RUSTC_ARCH ?= # should be empty instead of --target $(shell rustc -vV | sed -n 's/host: //p') to share crates ar target dir
30+
RUSTC_ARCH ?= # should be empty except for cross-build, not --target $(shell rustc -vV | sed -n 's/host: //p')
3131

3232
# Install directories
3333
PREFIX ?= /usr/local

0 commit comments

Comments
 (0)