From a288344363f96b26d5b6cf5a03000b62be1c96d3 Mon Sep 17 00:00:00 2001 From: Philipp Basler Date: Thu, 25 Apr 2024 22:50:47 +0200 Subject: [PATCH] Try another variable name and add output --- .github/GetProfile.py | 4 +++- .github/workflows/test.yml | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/GetProfile.py b/.github/GetProfile.py index 50edd8da..bfb0a734 100644 --- a/.github/GetProfile.py +++ b/.github/GetProfile.py @@ -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()}") diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c2a343d1..953dc4c7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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