Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build on GHA #9

Merged
merged 14 commits into from
Feb 14, 2025
Merged

Build on GHA #9

merged 14 commits into from
Feb 14, 2025

Conversation

rwmcintosh
Copy link
Member

No description provided.

@rwmcintosh rwmcintosh changed the title initial GHA test Build on GHA Feb 7, 2025
@rwmcintosh rwmcintosh requested a review from Yuri05 February 7, 2025 17:16
@rwmcintosh rwmcintosh self-assigned this Feb 7, 2025
@rwmcintosh
Copy link
Member Author

@Felixmil

@Felixmil
Copy link
Contributor

Seems to work great !

README.md Outdated Show resolved Hide resolved
Comment on lines +212 to +238
- name: build debug
run: |
if not exist BuildCVODES_Windows mkdir BuildCVODES_Windows
echo Compiling for build type = Debug
cmake -BBuildCVODES_Windows/Debug/x64/ -Hsrc/CVODES/ -DCMAKE_BUILD_TYPE=Debug -DEXAMPLES_ENABLE_C=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -DENABLE_KLU=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DKLU_INCLUDE_DIR=BuildSuiteSparse/include/ -DKLU_LIBRARY_DIR=BuildSuiteSparse/lib64/ -DCMAKE_C_FLAGS_RELEASE="/O2 /Ob2 /DNDEBUG /Oi"
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
msbuild BuildCVODES_Windows/Debug/x64/ALL_BUILD.vcxproj /property:Configuration=Debug
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
if exist Dist\Windows\Debug\x64 rmdir /S /Q Dist\Windows\Debug\x64
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
mkdir Dist\Windows\Debug\x64
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
shell: cmd

- name: build release
run: |
if not exist BuildCVODES_Windows mkdir BuildCVODES_Windows
echo Compiling for build type = Release
cmake -BBuildCVODES_Windows/Release/x64/ -Hsrc/CVODES/ -DCMAKE_BUILD_TYPE=Release -DEXAMPLES_ENABLE_C=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -DENABLE_KLU=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DKLU_INCLUDE_DIR=BuildSuiteSparse/include/ -DKLU_LIBRARY_DIR=BuildSuiteSparse/lib64/ -DCMAKE_C_FLAGS_RELEASE="/O2 /Ob2 /DNDEBUG /Oi"
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
msbuild BuildCVODES_Windows/Release/x64/ALL_BUILD.vcxproj /property:Configuration=Release
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
if exist Dist\Windows\Release\x64 rmdir /S /Q Dist\Windows\Release\x64
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
mkdir Dist\Windows\Release\x64
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
shell: cmd
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use build_Windows.bat 🙂

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, let's merge AS IS for now.
Created an issue: #10

@rwmcintosh rwmcintosh merged commit 3b9d519 into main Feb 14, 2025
5 checks passed
@rwmcintosh rwmcintosh deleted the build_with_gha branch February 14, 2025 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants