forked from Tudat/tudat
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
848764d
commit 52f5633
Showing
1 changed file
with
11 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,7 +98,7 @@ jobs: | |
- name: Create conda environment from environment.yml | ||
# Update the tudat conda environment created using the environment.yml file if the cache is not restored | ||
run: mamba env update -n tudat -f environment.yml | ||
#(commenting line for test) if: steps.cache.outputs.cache-hit != 'true' | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
|
||
|
||
- name: Download tudat resources data files for Linux and MacOS | ||
|
@@ -110,20 +110,20 @@ jobs: | |
# be downloaded manually when the cache is hit. | ||
# This step downloads the data files in the tudat-resources package by running | ||
# the post-link scripts in https://github.com/tudat-team/tudat-resources-feedstock/blob/master/recipe/ | ||
if: (runner.os == 'Linux' || runner.os == 'MacOS') #(commenting line for test) && steps.cache.outputs.cache-hit == 'true' | ||
if: (runner.os == 'Linux' || runner.os == 'MacOS') && steps.cache.outputs.cache-hit == 'true' | ||
run: bash -c "$(curl -fsSL https://raw.githubusercontent.com/tudat-team/tudat-resources-feedstock/master/recipe/post-link.sh)" | ||
|
||
|
||
- name: Download tudat-resources data files for Windows | ||
if: runner.os == 'Windows' #(commenting line for test) && steps.cache.outputs.cache-hit == 'true' | ||
if: runner.os == 'Windows' && steps.cache.outputs.cache-hit == 'true' | ||
run: cmd /c "curl -fsSL https://raw.githubusercontent.com/tudat-team/tudat-resources-feedstock/master/recipe/post-link.bat | cmd" | ||
|
||
|
||
# - name: Restore cached compilation results | ||
# # This third party action will setup ccache on the runner and restore any previously saved cache. Caches are saved automatically by the action after a build. | ||
# uses: hendrikmuhs/[email protected] | ||
# with: | ||
# key: ${{ matrix.os }}-${{ matrix.build_type }} | ||
- name: Restore cached compilation results | ||
# This third party action will setup ccache on the runner and restore any previously saved cache. Caches are saved automatically by the action after a build. | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ${{ matrix.os }}-${{ matrix.build_type }} | ||
|
||
|
||
- name: Configure CMake | ||
|
@@ -135,10 +135,9 @@ jobs: | |
-S "${{ github.workspace }}" | ||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | ||
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} | ||
#-DCMAKE_CXX_COMPILER_LAUNCHER=ccache | ||
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache | ||
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }} | ||
#-DCMAKE_C_COMPILER_LAUNCHER=ccache | ||
-DTUDAT_BUILD_WITH_EXTENDED_PRECISION_PROPAGATION_TOOLS=OFF | ||
-DCMAKE_C_COMPILER_LAUNCHER=ccache | ||
-DTUDAT_BUILD_GITHUB_ACTIONS=ON | ||
|
@@ -152,4 +151,4 @@ jobs: | |
working-directory: "${{ github.workspace }}/build" | ||
# Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator). | ||
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail | ||
run: ctest --build-config ${{ matrix.build_type }} --output-on-failure -j4 | ||
run: ctest --build-config ${{ matrix.build_type }} --output-on-failure -j4 |