Skip to content

Commit

Permalink
master: attempt to fix math.h not found in workflows.
Browse files Browse the repository at this point in the history
conda-windows-clang.yml: fix dynamic lib warning.
  • Loading branch information
bradbell committed Jan 13, 2024
1 parent 31bc229 commit d32264a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/conda-ubuntu-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ jobs:
- name: Build CppAD
shell: bash -l {0}
run: |
if [ "$RUNNER_OS" == "macOS" ]
then
export SDKROOT=$(xcrun --sdk macosx --show-sdk-path)
fi
conda activate cppad
echo $CONDA_PREFIX
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/conda-windows-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ jobs:
:: Configure
cmake ^
-G "Visual Studio 16 2019" -T "ClangCl" -DCMAKE_GENERATOR_PLATFORM=x64 ^
-G "Visual Studio 16 2019" -T "ClangCl" ^
-DCMAKE_GENERATOR_PLATFORM=x64 ^
-DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ^
-Dcppad_static_lib=TRUE ^
..
:: Build
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/ubuntu-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,17 @@ jobs:
cmake -D cppad_debug_which=$debug_which ..
- name: run make check
run: |
cd build
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 }}"

0 comments on commit d32264a

Please sign in to comment.