Skip to content

Commit

Permalink
Reverting workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicDirkx committed Oct 3, 2024
1 parent 848764d commit 52f5633
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 52f5633

Please sign in to comment.