Skip to content

Commit

Permalink
GitHub Actions: another attempt to resolve test failures on macos-lat…
Browse files Browse the repository at this point in the history
…est.
  • Loading branch information
cosinekitty committed Jul 6, 2024
1 parent bf66226 commit c5b4422
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/astronomy-engine-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- name: Test Astronomy Engine Unix
if: startsWith(matrix.os, 'windows') == false
run: generate/commit_hook
run: generate/commit_hook ${{runner.os}}

- name: Test Astronomy Engine Windows
if: startsWith(matrix.os, 'windows')
Expand Down
2 changes: 1 addition & 1 deletion generate/commit_hook
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#/bin/bash
[[ -d generate ]] && cd generate
rm -f output/vsop*.txt output/*.eph output/jupiter_moons.txt
./run || exit $?
OS_NAME=$1 ./run || exit $?
./verify_clean || exit $?
echo "commit_hook: SUCCESS"
exit 0
6 changes: 5 additions & 1 deletion generate/run
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ cd generate || Fail "Cannot change back to generate directory."

echo ""
echo "Building C source code for 'generate' program."
cppcheck -I . -I novas -I vsop -I top2013 --error-exitcode=9 --enable=all --check-level=exhaustive --suppress=variableScope --suppress=unusedStructMember --suppress=missingIncludeSystem --suppress=unusedFunction generate.c earth.c astro_vector.c chebyshev.c codegen.c ephfile.c vsop/vsop.c top2013/top2013.c || exit 1
CPPCHECK_OPTIONS=-I . -I novas -I vsop -I top2013 --error-exitcode=9 --enable=all --suppress=variableScope --suppress=unusedStructMember --suppress=missingIncludeSystem --suppress=unusedFunction
if [[ "${OS_NAME}" == "macos-latest" ]]; then
CPPCHECK_OPTIONS += --check-level=exhaustive
fi
cppcheck ${CPPCHECK_OPTIONS} generate.c earth.c astro_vector.c chebyshev.c codegen.c ephfile.c vsop/vsop.c top2013/top2013.c || exit 1
./build || Fail "Could not build 'generate' program from source."

mkdir -pv output temp apsides || Fail "Error creating directories."
Expand Down

0 comments on commit c5b4422

Please sign in to comment.