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 1ec8e9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 49 deletions.
1 change: 1 addition & 0 deletions .github/ci/ccache.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ $tarball = "$filename.zip"

$outdir = $pwd.Path
$outdir = "$outdir\.github"
echo "$outdir"
mkdir $outdir
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -Uri "https://github.com/ccache/ccache/releases/download/$tag/$tarball" -OutFile "$outdir\$tarball"
Expand Down
54 changes: 5 additions & 49 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,62 +18,18 @@ jobs:
OPENSSL64_ROOT: "C:/Program Files/OpenSSL-Win64"

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 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;
- name: Install python tests dependencies
shell: pwsh
run: |
cd (ni -Type Directory -Path "$Env:TMP\$(New-Guid)")
$cr = "`n"
'cmake_minimum_required(VERSION 3.5)' + $cr +
'project(dummy VERSION 1.0.0 LANGUAGES CXX)' + $cr +
'find_package (Python3 COMPONENTS Interpreter Development REQUIRED)' + $cr +
'message(STATUS "cmake detected python=>>>>>${Python3_EXECUTABLE}<<<<<<")' |
Out-File CMakeLists.txt
(cmake .) *>&1 | % {
if($_ -Match "cmake detected python=>>>>>(?<exec>.*)<<<<<<")
{
$python_exec = $Matches.exec
return
}
}
& $python_exec -m pip install -U pytest pywin32
- uses: actions/checkout@v2
with:
path: src/fastdds_python

- name: Fetch repositories
shell: pwsh
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
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"
.\src\fastdds_python\.github\ci\ccache.ps1
echo "$pwdpath\.github\ccache" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.github\ccache;$env:PATH"
ls "$pwdpath\.github"
ccache --version
- name: Setup ccache
uses: Chocobo1/setup-ccache-action@v1
Expand Down

0 comments on commit 1ec8e9b

Please sign in to comment.