From 3b98ccf389232d08b0a5685581f4032fe4750c06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Fri, 29 Sep 2023 15:54:48 +0200 Subject: [PATCH] Fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- .github/workflows/build_and_test.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 4852f6cd..9c2984bd 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -67,13 +67,20 @@ jobs: uses: lukka/get-cmake@latest with: cmakeVersion: 3.22.6 + - name: Use cmake run: cmake --version - name: Install ccache + shell: pwsh run: | - powershell -File "src/fastdds_python/.github/ci/ccache.ps1" - Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.github\ccache;$env:PATH" + pwsh -File "src\fastdds_python\.github\ci\ccache.ps1" + $ccache_dir = $pwd.PATH + $ccache_dir = "$ccache_dir\.github\ccache" + echo "$ccache_dir" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + Set-Item -Force -Path "env:PATH" -Value "$ccache_dir;$env:PATH" + ls "$ccache_dir" + ccache --version - name: Setup ccache uses: Chocobo1/setup-ccache-action@v1 @@ -92,7 +99,7 @@ jobs: -StartInPath (pwd) -DevCmdArguments '/arch=x64 /host_arch=x64'; colcon build --executor parallel --event-handlers console_direct+ desktop_notification- ` --metas ./src/fastdds_python/.github/workflows/test.meta ` - --cmake-args -DCMAKE_C_COMPILER_LAUNCHER=ccache + --cmake-args -DCMAKE_C_COMPILER_LAUNCHER=ccache ` -DCMAKE_CXX_COMPILER_LAUNCHE=ccache - name: Run tests