Skip to content

Commit

Permalink
CI: Clean up scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett committed Aug 5, 2024
1 parent be4c4ff commit 4fd6d34
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 26 deletions.
2 changes: 1 addition & 1 deletion scripts/actions-oneapi-real64.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ FC = gfortran
F90 = gfortran
LD = /opt/intel/oneapi/compiler/2024.2/bin/icpx

# -g
# -g # Debug information uses too much disk space on CI
CPPFLAGS = -DSIMD_DISABLE -DSIMD_CPU
CFLAGS = -fp-model=precise -march=x86-64-v3 -pipe -std=gnu11
CXXFLAGS = -fp-model=precise -fsycl -march=x86-64-v3 -pipe -std=c++17
Expand Down
15 changes: 1 addition & 14 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# set -ex
set -ex

export CARPETXSPACE="$PWD"
export WORKSPACE="$PWD/../workspace"
Expand Down Expand Up @@ -32,18 +32,5 @@ esac
time ./simfactory/bin/sim --machine="actions-$ACCELERATOR-$REAL_PRECISION" build "$mode" --jobs $(nproc) sim 2>&1 |
tee build.log

# TODO
du -sh $WORKSPACE
du -sh $WORKSPACE/configs/sim
du -sh $WORKSPACE/configs/sim/build
du -sh $WORKSPACE/configs/sim/lib
du -sh $WORKSPACE/configs/sim/scratch
du -sh $WORKSPACE/configs/sim/*
du -sh $WORKSPACE/configs/sim/build/*
du -sh $WORKSPACE/configs/sim/lib/*
du -sh $WORKSPACE/configs/sim/scratch/*

# Check whether the executable exists and is executable
test -x exe/cactus_sim

exit $? # TODO
13 changes: 2 additions & 11 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,12 @@ for errfile in $(find "${ONEPROC_DIR}/../.." "${TWOPROC_DIR}/../.." -name '*.err
echo '================================================================================'
done

# TESTS_FAILED=False
# for test_dir in "${ONEPROC_DIR}" "${TWOPROC_DIR}"; do
# log="${test_dir}/summary.log"
# if ! grep -q '^ Number failed -> 0$' ${log}; then
# TESTS_FAILED=True
# fi
# done
# echo "TESTS_FAILED=${TESTS_FAILED}" >>"${GITHUB_ENV}"

for test_dir in "${ONEPROC_DIR}" "${TWOPROC_DIR}"; do
log="${test_dir}/summary.log"
if ! grep -q '^ Number failed -> 0$' ${log}; then
# Failure
echo 'FAILURE'
exit 1
fi
done
# Success
echo 'SUCCESS'
exit 0

0 comments on commit 4fd6d34

Please sign in to comment.