Skip to content

Commit

Permalink
Merge pull request #7: Enable Google Test Framework, CPPAD, and EIGEN…
Browse files Browse the repository at this point in the history
… Download & Installation

In this PR, we enable the download and installation of the google test framework including Gmock, the CPPAD, and the EIGEN framework.
  • Loading branch information
franziska-wegner authored Dec 6, 2023
2 parents c38bd4c + f2c6cf3 commit 835526e
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ jobs:
-DBoost_NO_SYSTEM_PATHS=TRUE
-DEGOA_BUILD_TYPE=${{ matrix.build_type }}
-DEGOA_DOWNLOAD_CPPAD=OFF
-DEGOA_DOWNLOAD_EIGEN=OFF
-DEGOA_DOWNLOAD_GOOGLE_TEST_FRAMEWORK=OFF
-DEGOA_DOWNLOAD_EIGEN=ON
-DEGOA_DOWNLOAD_GOOGLE_TEST_FRAMEWORK=ON
-DEGOA_DOWNLOAD_IEEE=ON
-DEGOA_DOWNLOAD_PYPSA_EUR=ON
-DEGOA_DOWNLOAD_PYPSA_ITI_COLLABORATION=ON
Expand Down Expand Up @@ -167,8 +167,14 @@ jobs:
-DOPENMP_LIBRARIES="/opt/homebrew/opt/llvm/lib"
-S ${{ github.workspace }}
- name: Build
- name: Build without Windows
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
if: ${{ !startsWith(matrix.os,'windows-') }}
run: sudo cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}

- name: Build (Windows)
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
if: startsWith(matrix.os,'windows-')
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}

- name: Test
Expand All @@ -178,7 +184,8 @@ jobs:
run: ctest --build-config ${{ matrix.build_type }}

- name: Generate documentation
shell: cmake -P {0}
if: startsWith(matrix.os,'ubuntu-')
shell: sudo cmake -P {0}
run: |
execute_process(
COMMAND cmake --build build --target doc
Expand All @@ -202,4 +209,3 @@ jobs:
publish_branch: gh-pages
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
# if: ${{ github.event_name == 'push' && matrix.config.name == 'Ubuntu Latest GCC Release' }}

0 comments on commit 835526e

Please sign in to comment.