Skip to content

Commit

Permalink
added github workflow aciton to run the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
akoerner1 committed Dec 10, 2024
1 parent e47a166 commit 87f3ddb
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches:
- 'master'
pull_request:
workflow_dispatch:

jobs:
CI:
runs-on: ubuntu-latest

steps:
- name: Init
run: |
df -h
sudo apt-get update
- name: Checkout
uses: actions/checkout@v2
with:
submodules: 'recursive'

- name: Install requirements
run: |
df -h
sudo apt-get update
sudo apt-get install -y make
- name: Build
run: |
df -h
make build
- name: Test
run: |
make Test
2 changes: 1 addition & 1 deletion OptiNLC/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ target_link_libraries(

file(GLOB TEST_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/test/*.cpp")
add_executable(${PROJECT_NAME}_TestRunner ${TEST_SOURCES})
target_compile_options(${PROJECT_NAME}_TestRunner PRIVATE -fpermissive)#REQUIRED for osqp
#target_compile_options(${PROJECT_NAME}_TestRunner PRIVATE -fpermissive)#REQUIRED for osqp
target_link_libraries(
${PROJECT_NAME}_TestRunner
PRIVATE
Expand Down

0 comments on commit 87f3ddb

Please sign in to comment.