Skip to content

master: move print_op.hpp -> pri_op.hpp and convert doc from doxygen … #189

master: move print_op.hpp -> pri_op.hpp and convert doc from doxygen …

master: move print_op.hpp -> pri_op.hpp and convert doc from doxygen … #189

Workflow file for this run

name: ubuntu-macos
on:
pull_request:
push:
branches:
- master
- 'stable/*'
jobs:
run_tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: set debug_which
run: |
mkdir build
cd build
set +e
random_03=$(expr $RANDOM % 4)
set -e
case $random_03 in
0) debug_which='debug_all'
;;
1) debug_which='debug_even'
;;
2) debug_which='debug_odd'
;;
3) debug_which='debug_none'
;;
esac
echo "$debug_which" > debug_which
- name: run cmake
run: |
cd build
debug_which=$(cat debug_which)
echo "cmake -D cppad_debug_which=$debug_which" ..
cmake -D cppad_debug_which=$debug_which ..
- name: run make check
run: |
if [ "$RUNNER_OS" == "macOS" ]
then
export SDKROOT=$(xcrun --sdk macosx --show-sdk-path)
fi
if which nproc >& /dev/null
then
n_job=$(nproc)
else
n_job=$(sysctl -n hw.ncpu)
fi
cd build
echo "make -j $n_job check"
make -j $n_job check
- run: echo "job.status = ${{ job.status }}"