Skip to content

Commit 2bc4e0e

Browse files
committed
Move cross testing commands into justfile
1 parent 6ad494b commit 2bc4e0e

File tree

2 files changed

+17
-22
lines changed

2 files changed

+17
-22
lines changed

etc/run-cross-experiment.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

justfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,23 @@ journey-tests-async:
221221
cargo build -p gix-testtools
222222
./tests/journey.sh {{ ein }} {{ gix }} {{ jtt }} async
223223

224+
# Build a customized `cross` container image for testing
225+
cross-image target:
226+
docker build --build-arg "TARGET={{ target }}" -t "cross-rs-gitoxide:{{ target }}" \
227+
- <etc/docker/Dockerfile.test-cross
228+
229+
# Test another platform with `cross`
230+
cross-test target: (cross-image target)
231+
NO_PRELOAD_CXX=1 cross test --workspace --no-fail-fast --target "{{ target }}" \
232+
--no-default-features --features max-pure \
233+
-- --skip realpath::fuzzed_timeout
234+
235+
# Test s390x with `cross`
236+
cross-test-s390x: (cross-test 's390x-unknown-linux-gnu')
237+
238+
# Test Android with `cross` (limited)
239+
cross-test-android: (cross-test 'armv7-linux-androideabi')
240+
224241
# Run cargo-diet on all crates to see that they are still in bound
225242
check-size:
226243
./etc/check-package-size.sh

0 commit comments

Comments
 (0)