Skip to content

Commit

Permalink
Refs #19657. Using eprosima-ci
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 20, 2023
1 parent e630528 commit 2991b07
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 40 deletions.
53 changes: 14 additions & 39 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,7 @@ jobs:

steps:

- name: install OpenSSL
shell: pwsh
run: |
choco install openssl -yr --no-progress
"System32;SysWoW64" -split ";" | Join-Path -Path $env:windir -ChildPath {$_} `
| ls -Include libssl-*.dll | rm
- name: Install ninja
if: github.event.schedule == ''
shell: pwsh
run: choco install ninja

- name: Setting ninja
id: ninja
if: github.event.schedule == ''
shell: pwsh
run: echo "cmake_generator=ninja" >> $Env:GITHUB_OUTPUT
- uses: eProsima/eProsima-CI/windows/install_openssl@v0

- name: Install swig
shell: pwsh
Expand Down Expand Up @@ -66,7 +50,7 @@ jobs:
}
& $python_exec -m pip install -U pytest pywin32
- uses: actions/checkout@v4
- uses: eProsima/eProsima-CI/external/checkout@v0
with:
path: src/fastdds_python

Expand All @@ -75,28 +59,20 @@ jobs:
run: |
vcs import src --skip-existing --input src/fastdds_python/fastdds_python.repos
- name: Get minimum supported version of CMake
uses: lukka/get-cmake@latest
- uses: eProsima/eProsima-CI/external/get-cmake@feature/ccache
with:
cmakeVersion: 3.22.6

- name: Use cmake
run: cmake --version

- name: Install ccache
- name: Setting ninja
id: ninja
if: github.event.schedule == ''
shell: pwsh
run: |
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
echo "cmake_generator=ninja" >> $Env:GITHUB_OUTPUT
- name: Setup ccache
uses: Chocobo1/setup-ccache-action@v1
uses: eProsima/eProsima-CI/external/setup-ccache-action@feature/ccache
with:
prepend_symlinks_to_path: false
install_ccache: false
windows_compile_environment: msvc

Expand All @@ -108,6 +84,7 @@ jobs:
Import-Module $modulepath
Enter-VsDevShell -SetDefaultWindowTitle -InstallPath $installpath `
-StartInPath (pwd) -DevCmdArguments '/arch=x64 /host_arch=x64';
cmake --version
colcon build --executor parallel --event-handlers console_direct+ desktop_notification- `
--metas ./src/fastdds_python/.github/workflows/test.meta `
--mixin rel-with-deb-info ccache ${{ steps.ninja.outputs.cmake_generator }}
Expand All @@ -129,7 +106,7 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- uses: eProsima/eProsima-CI/external/checkout@v0
with:
path: src/fastdds_python

Expand All @@ -154,18 +131,16 @@ jobs:
run: |
vcs import --skip-existing src < src/fastdds_python/fastdds_python.repos
- name: Get minimum supported version of CMake
uses: lukka/get-cmake@latest
- uses: eProsima/eProsima-CI/external/get-cmake@feature/ccache
with:
cmakeVersion: 3.22.6
- name: Use cmake
run: cmake --version

- name: Setup ccache
uses: Chocobo1/setup-ccache-action@v1
uses: eProsima/eProsima-CI/external/setup-ccache-action@feature/ccache

- name: Build workspace
run: >
run: |
cmake --version
colcon build \
--event-handlers=console_direct+ \
--metas ./src/fastdds_python/.github/workflows/test.meta \
Expand Down
1 change: 0 additions & 1 deletion fastdds_python.repos
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ repositories:
type: git
url: https://github.com/eProsima/IDL-Parser.git
version: master

0 comments on commit 2991b07

Please sign in to comment.