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