Skip to content

Commit

Permalink
Per #2412, unrelated to this issue but adding the -j option to the ma…
Browse files Browse the repository at this point in the history
…ke commands in build_met_docker.sh. This should improve the speed of compilation job in GitHub actions. Using 'make -j install' improves the compilation time from 8m40s to 2m58s. So definitely worth trying!
  • Loading branch information
JohnHalleyGotway committed Jan 24, 2023
1 parent 0549f2f commit 9e056e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/scripts/docker/build_met_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ fi

LOG_FILE=/met/MET-${MET_GIT_NAME}/make_install.log
echo "Compiling MET ${MET_GIT_NAME} and writing log file ${LOG_FILE}"
make install > ${LOG_FILE}
make -j install > ${LOG_FILE}
if [ $? != 0 ]; then
exit 1
fi

LOG_FILE=/met/logs/MET-${MET_GIT_NAME}_make_test.log
echo "Testing MET ${MET_GIT_NAME} and writing log file ${LOG_FILE}"
make test > ${LOG_FILE} 2>&1
make -j test > ${LOG_FILE} 2>&1
if [ $? != 0 ]; then
exit 1
fi
Expand Down

0 comments on commit 9e056e3

Please sign in to comment.