Skip to content

Commit

Permalink
better github action workflows (should detect failure also under maco…
Browse files Browse the repository at this point in the history
…s-latest)
  • Loading branch information
AlePalu committed Dec 6, 2023
1 parent d999940 commit dd7d768
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test-linux-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@ jobs:
export Eigen3_DIR=/usr/share/cmake/Modules # reguired to let eigen3 work with CMake in alpine
chmod +x run_tests.sh
./run_tests.sh --compiler clang
echo "TEST_RESULT=$(echo $?)" >> $GITHUB_ENV
- name: check_tests_passed
run: |
if [ "$TEST_RESULT" -eq "0" ]; then
exit 0
else
exit 1
fi
8 changes: 8 additions & 0 deletions .github/workflows/test-linux-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@ jobs:
export Eigen3_DIR=/usr/share/cmake/Modules # reguired to let eigen3 work with CMake in alpine
chmod +x run_tests.sh
./run_tests.sh --compiler gcc
echo "TEST_RESULT=$(echo $?)" >> $GITHUB_ENV
- name: check_tests_passed
run: |
if [ "$env.TEST_RESULT" -eq "0" ]; then
exit 0
else
exit 1
fi
12 changes: 8 additions & 4 deletions .github/workflows/test-macos-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ jobs:
run: |
brew install eigen
- name: run_tests
id: test_result
run: |
cd test/
chmod +x run_tests.sh
./run_tests.sh --compiler clang
- name: check tests passed
if: steps.test_result.outputs.result != 0
run: exit 1
echo "TEST_RESULT=$(echo $?)" >> $GITHUB_ENV
- name: check_tests_passed
run: |
if [ "$TEST_RESULT" -eq "0" ]; then
exit 0
else
exit 1
fi

0 comments on commit dd7d768

Please sign in to comment.