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 dd5ee98 commit 91f4f2a
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,19 @@ jobs:
"System32;SysWoW64" -split ";" | Join-Path -Path $env:windir -ChildPath {$_} `
| ls -Include libssl-*.dll | rm
- name: install swig
- name: Install ninja
shell: pwsh
run: choco install ninja

- name: Install swig
shell: pwsh
run: choco install swig --allow-downgrade --version=4.0.2.04082020

- name: Install python build dependencies
shell: pwsh
run: >
pip install -U colcon-common-extensions colcon-mixin vcstool;
colcon mixin add default https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml; colcon mixin update default
- name: Install python tests dependencies
shell: pwsh
Expand Down Expand Up @@ -67,13 +72,19 @@ 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"
ccache --version
- name: Setup ccache
uses: Chocobo1/setup-ccache-action@v1
Expand All @@ -92,8 +103,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
-DCMAKE_CXX_COMPILER_LAUNCHE=ccache
--mixin rel-with-deb-info ccache ninja
- name: Run tests
shell: pwsh
Expand Down Expand Up @@ -131,6 +141,8 @@ jobs:
vcstool \
colcon-common-extensions
colcon mixin add default https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml; colcon mixin update default
- name: Fetch repositories
run: |
vcs import --skip-existing src < src/fastdds_python/fastdds_python.repos
Expand All @@ -150,9 +162,7 @@ jobs:
colcon build \
--event-handlers=console_direct+ \
--metas ./src/fastdds_python/.github/workflows/test.meta \
--cmake-args \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
--mixin rel-with-deb-info ccache
- name: Run tests
run: |
Expand Down

0 comments on commit 91f4f2a

Please sign in to comment.