Skip to content

Commit

Permalink
Try another variable name and add output
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Basler committed Apr 25, 2024
1 parent 0869dcd commit a288344
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/GetProfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@

env_file = os.getenv('GITHUB_ENV')
with open(env_file, "a") as myfile:
myfile.write(f"generated_cmake_preset={Build.get_preset()}")
myfile.write(f"GeneratedCMakeProfile={Build.get_preset()}")

print(f"Setting GeneratedCMakeProfile={Build.get_preset()}")
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ jobs:
run: python3 .github/GetProfile.py

- name: cmake
run: cmake --preset $generated_cmake_preset
run: cmake --preset $GeneratedCMakeProfile
- name: build
run: cmake --build --preset $generated_cmake_preset -j${{ steps.cpu-cores.outputs.count }}
run: cmake --build --preset $GeneratedCMakeProfile -j${{ steps.cpu-cores.outputs.count }}
- name: run tests
run: ctest --preset $generated_cmake_preset -j --output-on-failure
run: ctest --preset $GeneratedCMakeProfile -j --output-on-failure



Expand Down

0 comments on commit a288344

Please sign in to comment.