This commit is contained in:
Siarhei Fedartsou 2024-05-26 21:57:45 +02:00
parent 8b80d058af
commit c8dd0d400a

View File

@ -361,6 +361,8 @@ jobs:
path: path:
/home/runner/.ccache /home/runner/.ccache
/Users/runner/.ccache /Users/runner/.ccache
~/.config/ccache
~/.cache/ccache
key: ccache-${{ matrix.name }}-${{ github.sha }} key: ccache-${{ matrix.name }}-${{ github.sha }}
restore-keys: | restore-keys: |
ccache-${{ matrix.name }}- ccache-${{ matrix.name }}-
@ -523,23 +525,23 @@ jobs:
cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
make --jobs=${JOBS} make --jobs=${JOBS}
popd popd
- name: Run all tests # - name: Run all tests
if: ${{ matrix.NODE_PACKAGE_TESTS_ONLY != 'ON' }} # if: ${{ matrix.NODE_PACKAGE_TESTS_ONLY != 'ON' }}
run: | # run: |
make -C test/data benchmark # make -C test/data benchmark
# macOS SIP strips the linker path. Reset this inside the running shell # # macOS SIP strips the linker path. Reset this inside the running shell
export LD_LIBRARY_PATH=${{ env.LD_LIBRARY_PATH }} # export LD_LIBRARY_PATH=${{ env.LD_LIBRARY_PATH }}
./example/build/osrm-example test/data/mld/monaco.osrm # ./example/build/osrm-example test/data/mld/monaco.osrm
# All tests assume to be run from the build directory # # All tests assume to be run from the build directory
pushd ${OSRM_BUILD_DIR} # pushd ${OSRM_BUILD_DIR}
for i in ./unit_tests/*-tests ; do echo Running $i ; $i ; done # for i in ./unit_tests/*-tests ; do echo Running $i ; $i ; done
if [ -z "${ENABLE_SANITIZER}" ]; then # if [ -z "${ENABLE_SANITIZER}" ]; then
npm run nodejs-tests # npm run nodejs-tests
fi # fi
popd # popd
npm test # npm test
- name: Use Node 18 - name: Use Node 18
if: ${{ matrix.NODE_PACKAGE_TESTS_ONLY == 'ON' }} if: ${{ matrix.NODE_PACKAGE_TESTS_ONLY == 'ON' }}