Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <[email protected]>
  • Loading branch information
richiware committed Oct 2, 2023
1 parent 7b2b296 commit 3b98ccf
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3b98ccf

Please sign in to comment.