|
68 | 68 | # /W0 disables warnings.
|
69 | 69 | # https://msdn.microsoft.com/en-us/library/19z1t1wy.aspx
|
70 | 70 | # TODO: CMake provides /W3, which overrides our /W0
|
71 |
| - cmake -E env CXXFLAGS="/W0" cmake $env:GITHUB_WORKSPACE/dependencies -LAH -G"Visual Studio 17 2022" -A x64 -DCMAKE_INSTALL_PREFIX=~/opensim_dependencies_install -DSUPERBUILD_ezc3d=ON -DOPENSIM_WITH_CASADI=ON |
| 71 | + cmake -E env CXXFLAGS="/W0 /MD" cmake $env:GITHUB_WORKSPACE/dependencies -LAH -G"Visual Studio 17 2022" -A x64 -DCMAKE_INSTALL_PREFIX=~/opensim_dependencies_install -DSUPERBUILD_ezc3d=ON -DOPENSIM_WITH_CASADI=ON |
72 | 72 | cmake --build . --config Release -- /maxcpucount:4
|
73 | 73 |
|
74 | 74 | - name: Configure opensim-core
|
|
79 | 79 | # TODO: Can remove /WX when we use that in CMakeLists.txt.
|
80 | 80 | # Set the CXXFLAGS environment variable to turn warnings into errors.
|
81 | 81 | # Skip timing test section included by default.
|
82 |
| - cmake -E env CXXFLAGS="/WX -DSKIP_TIMING" cmake $env:GITHUB_WORKSPACE -LAH -G"Visual Studio 17 2022" -A x64 -DCMAKE_INSTALL_PREFIX=~/opensim-core-install -DOPENSIM_DEPENDENCIES_DIR=~/opensim_dependencies_install -DOPENSIM_C3D_PARSER=ezc3d -DOPENSIM_WITH_CASADI=on -DBUILD_PYTHON_WRAPPING=on -DBUILD_JAVA_WRAPPING=on -DPython3_ROOT_DIR=C:\hostedtoolcache\windows\Python\3.10.11\x64 |
| 82 | + cmake -E env CXXFLAGS="/WX /MD -DSKIP_TIMING" cmake $env:GITHUB_WORKSPACE -LAH -G"Visual Studio 17 2022" -A x64 -DCMAKE_INSTALL_PREFIX=~/opensim-core-install -DOPENSIM_DEPENDENCIES_DIR=~/opensim_dependencies_install -DOPENSIM_C3D_PARSER=ezc3d -DOPENSIM_WITH_CASADI=on -DBUILD_PYTHON_WRAPPING=on -DBUILD_JAVA_WRAPPING=on -DPython3_ROOT_DIR=C:\hostedtoolcache\windows\Python\3.10.11\x64 |
83 | 83 | $env:match = cmake -L . | Select-String -Pattern OPENSIM_QUALIFIED_VERSION
|
84 | 84 | $version = $env:match.split('=')[1]
|
85 | 85 | echo $version
|
@@ -328,6 +328,7 @@ jobs:
|
328 | 328 | - name: Install Homebrew packages
|
329 | 329 | # Save the gfortran version to a file so we can use it in the cache key.
|
330 | 330 | run: |
|
| 331 | + brew pin cmake |
331 | 332 | brew install cmake pkgconfig autoconf libtool automake wget pcre doxygen llvm
|
332 | 333 | brew reinstall gcc
|
333 | 334 | pip3 install numpy==1.25
|
@@ -362,7 +363,7 @@ jobs:
|
362 | 363 | key: ${{ runner.os }}-dependencies-${{ hashFiles('dependencies/*') }}-${{ hashFiles('gfortran_version/*') }}
|
363 | 364 |
|
364 | 365 | - name: Build dependencies
|
365 |
| - if: steps.cache-dependencies.outputs.cache-hit != 'true' |
| 366 | + # if: steps.cache-dependencies.outputs.cache-hit != 'true' |
366 | 367 | run: |
|
367 | 368 | mkdir $GITHUB_WORKSPACE/../build_deps
|
368 | 369 | cd $GITHUB_WORKSPACE/../build_deps
|
|
0 commit comments