Skip to content

Commit

Permalink
Split python steps
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Nov 24, 2024
1 parent f9f97b1 commit e3a3bf8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/reusable-ros-tooling-win-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
repo_path: src/${{ github.repository }}
python_ver: 3.8.10
steps:
- name: Check python version and set paths
- name: Set python version paths
# TODO(anyone): remove this step once the setup-ros/action-ros-ci is fixed
# * setup-ros has hardcoded python 3.8, as it is the default version acc. to REP-2000 for jazzy
# * whatever we do here, python 3.12 is selected by action-ros-ci
Expand All @@ -52,16 +52,20 @@ jobs:
Add-Content -Path $env:GITHUB_ENV -Value "Python3_FIND_REGISTRY=NEVER"
Add-Content -Path $env:GITHUB_ENV -Value "PY_PYTHON=3"
Add-Content -Path $env:GITHUB_ENV -Value "PY_PYTHON3=3.8"
Remove-Item -Recurse -Force "C:/hostedtoolcache/windows/Python/3.12.7"
Remove-Item -Recurse -Force "C:/hostedtoolcache/windows/Python/3.11.9"
Remove-Item -Recurse -Force "C:/hostedtoolcache/windows/Python/3.10.11"
Remove-Item -Recurse -Force "C:/hostedtoolcache/windows/Python/3.9.13"
- name: Check python version
# TODO(anyone): remove this step once the setup-ros/action-ros-ci is fixed
run: |
python3 --version || true
python --version || true
pip3 --version || true
pip --version || true
C:\Windows\system32\cmd.exe /E:ON /V:OFF /S /C call "C:\Program Files\Git\bin\bash.exe" -c "python3 --version" || true
C:\Windows\system32\cmd.exe /E:ON /V:OFF /S /C call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && & "C:\Program Files\Git\bin\bash.exe" -c "python3 --version" || true
Remove-Item -Recurse -Force "C:/hostedtoolcache/windows/Python/3.12.7"
Remove-Item -Recurse -Force "C:/hostedtoolcache/windows/Python/3.11.9"
Remove-Item -Recurse -Force "C:/hostedtoolcache/windows/Python/3.10.11"
Remove-Item -Recurse -Force "C:/hostedtoolcache/windows/Python/3.9.13"
- uses: ros-tooling/[email protected]
with:
Expand Down

0 comments on commit e3a3bf8

Please sign in to comment.