Skip to content

Commit

Permalink
Added logging to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
henricasanova committed Nov 6, 2024
1 parent 6cd114b commit e36be94
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
COMPILER: ${{ matrix.COMPILER }}
batsched: ${{ matrix.batsched }}
run: |
echo "Downloading wrench...";
docker pull wrenchproject/wrench-build:${DIST}-${COMPILER};
docker run -m 4g -d -t --name=wrench wrenchproject/wrench-build:${DIST}-${COMPILER} bash;
docker exec wrench git clone https://github.com/wrench-project/wrench;
Expand All @@ -69,16 +70,20 @@ jobs:
docker exec -w /home/wrench/wrench wrench git checkout ${BRANCH_NAME};
fi
# build wrench, including unit_tests and examples
echo "Building wrench...";
docker exec wrench mkdir wrench/build;
docker exec -w /home/wrench/wrench/build wrench cmake -DENABLE_BATSCHED=${batsched} -DCMAKE_VERBOSE_MAKEFILE=ON ..;
docker exec -w /home/wrench/wrench/build wrench make all unit_tests examples wrench-daemon;
docker exec -w /home/wrench/wrench/build wrench sudo make install
# run unit_tests
echo "Running tests...";
docker exec -w /home/wrench/wrench/build wrench ./unit_tests;
# run examples
echo "Running examples...";
#docker exec -w /home/wrench/wrench/build/examples wrench ./run_all_examples.sh wrench-example-batch-smpi-action;
docker exec -w /home/wrench/wrench/build/examples wrench ./run_all_examples.sh
# run wrench-init
echo "Testing wrench-init...";
docker exec -w /home/wrench/wrench/build wrench python3 ./tools/wrench/wrench-init/wrench-init -a ACTION -d ./wrench-init-generated-simulator
docker exec -w /home/wrench/wrench/build/wrench-init-generated-simulator/build wrench cmake ..
docker exec -w /home/wrench/wrench/build/wrench-init-generated-simulator/build wrench make
Expand Down

0 comments on commit e36be94

Please sign in to comment.