Modify dehydrate/test/build_dehydrate_test.sh
Some checks failed
Build-Test-Publish / build (linux/arm64) (push) Failing after 10s
Build-Test-Publish / build (linux/amd64) (push) Failing after 24s
Build-Test-Publish / test-install-from-scratch (linux/amd64) (push) Has been skipped
Build-Test-Publish / test-install-from-scratch (linux/arm64) (push) Has been skipped
Some checks failed
Build-Test-Publish / build (linux/arm64) (push) Failing after 10s
Build-Test-Publish / build (linux/amd64) (push) Failing after 24s
Build-Test-Publish / test-install-from-scratch (linux/amd64) (push) Has been skipped
Build-Test-Publish / test-install-from-scratch (linux/arm64) (push) Has been skipped
This commit is contained in:
parent
cb2522decb
commit
a12270f6c2
@ -2,14 +2,15 @@
|
|||||||
|
|
||||||
# Get the directory where this script is located
|
# Get the directory where this script is located
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
PROJECT_DIR="$( cd "$SCRIPT_DIR/.." && pwd )"
|
||||||
|
|
||||||
cd "$SCRIPT_DIR"
|
cd "$SCRIPT_DIR"
|
||||||
|
|
||||||
# Clean up old test data
|
# Clean up old test data
|
||||||
rm -rf dehydrate_test_data
|
rm -rf dehydrate_test_data
|
||||||
|
|
||||||
# Build the test program
|
# Build the test program - mount the entire project directory to access ../output/dehydrate
|
||||||
docker run --rm -v $(pwd):/workdir -w /workdir gitea.jde.nz/public/dropshell-build-base:latest \
|
docker run --rm -v "$PROJECT_DIR":/workdir -w /workdir/test gitea.jde.nz/public/dropshell-build-base:latest \
|
||||||
g++ -std=c++23 -static dehydrate_test.cpp -o dehydrate_test
|
g++ -std=c++23 -static dehydrate_test.cpp -o dehydrate_test
|
||||||
|
|
||||||
# Run the test
|
# Run the test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user