diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 4852f6cd..00524234 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -19,61 +19,14 @@ 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 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=>>>>>(?.*)<<<<<<") - { - $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 run: | powershell -File "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" + ls "$pwdpath\.github\ccache" + ccache --version - name: Setup ccache uses: Chocobo1/setup-ccache-action@v1