mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-04 10:45:50 +00:00
Co-authored-by: Denis Angell <dangell@transia.co> Co-authored-by: Niq Dudfield <ndudfield@gmail.com>
12 lines
358 B
Bash
Executable File
12 lines
358 B
Bash
Executable File
#!/bin/bash -x
|
|
|
|
BUILD_CORES=$(echo "scale=0 ; `nproc` / 1.337" | bc)
|
|
|
|
if [[ "$GITHUB_REPOSITORY" == "" ]]; then
|
|
#Default
|
|
BUILD_CORES=8
|
|
fi
|
|
|
|
echo "Mounting $(pwd)/io in ubuntu and running unit tests"
|
|
docker run --rm -i -v $(pwd):/io --platform=linux/amd64 -e BUILD_CORES=$BUILD_CORES ubuntu sh -c '/io/release-build/xahaud --unittest-jobs $BUILD_CORES -u'
|