Skip to content

Commit

Permalink
Add build files 2025-01-14-0238
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 14, 2025
1 parent 7ed3219 commit adada78
Show file tree
Hide file tree
Showing 65 changed files with 4,630 additions and 0 deletions.
348 changes: 348 additions & 0 deletions .github/workflows/win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,348 @@
jobs:
stage_0_job_0:
name: mrt-cmake-modules lanelet2-core
runs-on: windows-2019
strategy:
fail-fast: false
needs: []
env:
CONDA_BLD_PATH: C:\\bld\\
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pixi
uses: prefix-dev/[email protected]
with:
pixi-version: v0.39.4
cache: 'true'
- uses: egor-tensin/cleanup-path@v4
with:
dirs: C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Program
Files\Git\mingw64\bin
- shell: cmd
run: |
set "CI=true"
:: 4 cores available on GHA: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
:: CPU_COUNT is passed through conda build: https://github.com/conda/conda-build/pull/1149
set CPU_COUNT=4
set PYTHONUNBUFFERED=1
call setup_x64
:: Set the conda-build working directory to a smaller path
if "%CONDA_BLD_PATH%" == "" (
set "CONDA_BLD_PATH=C:\\bld\\"
)
:: On azure, there are libcrypto*.dll & libssl*.dll under
:: C:\\Windows\\System32, which should not be there (no vendor dlls in windows folder).
:: They would be found before the openssl libs of the conda environment, so we delete them.
if defined CI (
DEL C:\\Windows\\System32\\libcrypto-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libcrypto-1_1-x64.dll)
DEL C:\\Windows\\System32\\libssl-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libssl-1_1-x64.dll)
)
:: Make paths like C:\\hostedtoolcache\\windows\\Ruby\\2.5.7\\x64\\bin garbage
set "PATH=%PATH:ostedtoolcache=%"
name: conda-forge build setup
- shell: cmd
run: |
setlocal EnableExtensions EnableDelayedExpansion
set CONDA_BLD_PATH=C:\bld
echo "PATH is %PATH%"
rmdir /Q/S C:\Strawberry\
rmdir /Q/S "C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\"
set "FEEDSTOCK_ROOT=%cd%"
mkdir %CONDA_BLD_PATH%
:: Enable long path names on Windows
reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f
for %%X in (%CURRENT_RECIPES%) do (
echo "BUILDING RECIPE %%X"
cd %FEEDSTOCK_ROOT%\recipes\%%X\
pixi run -v rattler-build build --recipe %FEEDSTOCK_ROOT%\recipes\%%X\ ^
-m %FEEDSTOCK_ROOT%\conda_build_config.yaml ^
-c robostack-staging -c conda-forge ^
--output-dir %CONDA_BLD_PATH%
if errorlevel 1 exit 1
rem -m %FEEDSTOCK_ROOT%\.ci_support\conda_forge_pinnings.yaml
)
pixi run upload "%CONDA_BLD_PATH%\win-64\*.conda" --force
if errorlevel 1 exit 1
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
CURRENT_RECIPES: ros-humble-mrt-cmake-modules ros-humble-lanelet2-core
PYTHONUNBUFFERED: 1
name: Build ros-humble-mrt-cmake-modules ros-humble-lanelet2-core
stage_1_job_1:
name: lanelet2-io lanelet2-traffic-rules lanelet2-maps
runs-on: windows-2019
strategy:
fail-fast: false
needs:
- stage_0_job_0
env:
CONDA_BLD_PATH: C:\\bld\\
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pixi
uses: prefix-dev/[email protected]
with:
pixi-version: v0.39.4
cache: 'true'
- uses: egor-tensin/cleanup-path@v4
with:
dirs: C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Program
Files\Git\mingw64\bin
- shell: cmd
run: |
set "CI=true"
:: 4 cores available on GHA: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
:: CPU_COUNT is passed through conda build: https://github.com/conda/conda-build/pull/1149
set CPU_COUNT=4
set PYTHONUNBUFFERED=1
call setup_x64
:: Set the conda-build working directory to a smaller path
if "%CONDA_BLD_PATH%" == "" (
set "CONDA_BLD_PATH=C:\\bld\\"
)
:: On azure, there are libcrypto*.dll & libssl*.dll under
:: C:\\Windows\\System32, which should not be there (no vendor dlls in windows folder).
:: They would be found before the openssl libs of the conda environment, so we delete them.
if defined CI (
DEL C:\\Windows\\System32\\libcrypto-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libcrypto-1_1-x64.dll)
DEL C:\\Windows\\System32\\libssl-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libssl-1_1-x64.dll)
)
:: Make paths like C:\\hostedtoolcache\\windows\\Ruby\\2.5.7\\x64\\bin garbage
set "PATH=%PATH:ostedtoolcache=%"
name: conda-forge build setup
- shell: cmd
run: |
setlocal EnableExtensions EnableDelayedExpansion
set CONDA_BLD_PATH=C:\bld
echo "PATH is %PATH%"
rmdir /Q/S C:\Strawberry\
rmdir /Q/S "C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\"
set "FEEDSTOCK_ROOT=%cd%"
mkdir %CONDA_BLD_PATH%
:: Enable long path names on Windows
reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f
for %%X in (%CURRENT_RECIPES%) do (
echo "BUILDING RECIPE %%X"
cd %FEEDSTOCK_ROOT%\recipes\%%X\
pixi run -v rattler-build build --recipe %FEEDSTOCK_ROOT%\recipes\%%X\ ^
-m %FEEDSTOCK_ROOT%\conda_build_config.yaml ^
-c robostack-staging -c conda-forge ^
--output-dir %CONDA_BLD_PATH%
if errorlevel 1 exit 1
rem -m %FEEDSTOCK_ROOT%\.ci_support\conda_forge_pinnings.yaml
)
pixi run upload "%CONDA_BLD_PATH%\win-64\*.conda" --force
if errorlevel 1 exit 1
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
CURRENT_RECIPES: ros-humble-lanelet2-io ros-humble-lanelet2-traffic-rules
ros-humble-lanelet2-maps
PYTHONUNBUFFERED: 1
name: Build ros-humble-lanelet2-io ros-humble-lanelet2-traffic-rules ros-humble-lanelet2-maps
stage_2_job_2:
name: lanelet2-projection lanelet2-routing lanelet2-matching lanelet2-validation
runs-on: windows-2019
strategy:
fail-fast: false
needs:
- stage_1_job_1
env:
CONDA_BLD_PATH: C:\\bld\\
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pixi
uses: prefix-dev/[email protected]
with:
pixi-version: v0.39.4
cache: 'true'
- uses: egor-tensin/cleanup-path@v4
with:
dirs: C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Program
Files\Git\mingw64\bin
- shell: cmd
run: |
set "CI=true"
:: 4 cores available on GHA: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
:: CPU_COUNT is passed through conda build: https://github.com/conda/conda-build/pull/1149
set CPU_COUNT=4
set PYTHONUNBUFFERED=1
call setup_x64
:: Set the conda-build working directory to a smaller path
if "%CONDA_BLD_PATH%" == "" (
set "CONDA_BLD_PATH=C:\\bld\\"
)
:: On azure, there are libcrypto*.dll & libssl*.dll under
:: C:\\Windows\\System32, which should not be there (no vendor dlls in windows folder).
:: They would be found before the openssl libs of the conda environment, so we delete them.
if defined CI (
DEL C:\\Windows\\System32\\libcrypto-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libcrypto-1_1-x64.dll)
DEL C:\\Windows\\System32\\libssl-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libssl-1_1-x64.dll)
)
:: Make paths like C:\\hostedtoolcache\\windows\\Ruby\\2.5.7\\x64\\bin garbage
set "PATH=%PATH:ostedtoolcache=%"
name: conda-forge build setup
- shell: cmd
run: |
setlocal EnableExtensions EnableDelayedExpansion
set CONDA_BLD_PATH=C:\bld
echo "PATH is %PATH%"
rmdir /Q/S C:\Strawberry\
rmdir /Q/S "C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\"
set "FEEDSTOCK_ROOT=%cd%"
mkdir %CONDA_BLD_PATH%
:: Enable long path names on Windows
reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f
for %%X in (%CURRENT_RECIPES%) do (
echo "BUILDING RECIPE %%X"
cd %FEEDSTOCK_ROOT%\recipes\%%X\
pixi run -v rattler-build build --recipe %FEEDSTOCK_ROOT%\recipes\%%X\ ^
-m %FEEDSTOCK_ROOT%\conda_build_config.yaml ^
-c robostack-staging -c conda-forge ^
--output-dir %CONDA_BLD_PATH%
if errorlevel 1 exit 1
rem -m %FEEDSTOCK_ROOT%\.ci_support\conda_forge_pinnings.yaml
)
pixi run upload "%CONDA_BLD_PATH%\win-64\*.conda" --force
if errorlevel 1 exit 1
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
CURRENT_RECIPES: ros-humble-lanelet2-projection ros-humble-lanelet2-routing
ros-humble-lanelet2-matching ros-humble-lanelet2-validation
PYTHONUNBUFFERED: 1
name: Build ros-humble-lanelet2-projection ros-humble-lanelet2-routing ros-humble-lanelet2-matching
ros-humble-lanelet2-validation
stage_3_job_3:
name: lanelet2-python lanelet2-examples lanelet2
runs-on: windows-2019
strategy:
fail-fast: false
needs:
- stage_2_job_2
env:
CONDA_BLD_PATH: C:\\bld\\
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pixi
uses: prefix-dev/[email protected]
with:
pixi-version: v0.39.4
cache: 'true'
- uses: egor-tensin/cleanup-path@v4
with:
dirs: C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Program
Files\Git\mingw64\bin
- shell: cmd
run: |
set "CI=true"
:: 4 cores available on GHA: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
:: CPU_COUNT is passed through conda build: https://github.com/conda/conda-build/pull/1149
set CPU_COUNT=4
set PYTHONUNBUFFERED=1
call setup_x64
:: Set the conda-build working directory to a smaller path
if "%CONDA_BLD_PATH%" == "" (
set "CONDA_BLD_PATH=C:\\bld\\"
)
:: On azure, there are libcrypto*.dll & libssl*.dll under
:: C:\\Windows\\System32, which should not be there (no vendor dlls in windows folder).
:: They would be found before the openssl libs of the conda environment, so we delete them.
if defined CI (
DEL C:\\Windows\\System32\\libcrypto-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libcrypto-1_1-x64.dll)
DEL C:\\Windows\\System32\\libssl-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libssl-1_1-x64.dll)
)
:: Make paths like C:\\hostedtoolcache\\windows\\Ruby\\2.5.7\\x64\\bin garbage
set "PATH=%PATH:ostedtoolcache=%"
name: conda-forge build setup
- shell: cmd
run: |
setlocal EnableExtensions EnableDelayedExpansion
set CONDA_BLD_PATH=C:\bld
echo "PATH is %PATH%"
rmdir /Q/S C:\Strawberry\
rmdir /Q/S "C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\"
set "FEEDSTOCK_ROOT=%cd%"
mkdir %CONDA_BLD_PATH%
:: Enable long path names on Windows
reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f
for %%X in (%CURRENT_RECIPES%) do (
echo "BUILDING RECIPE %%X"
cd %FEEDSTOCK_ROOT%\recipes\%%X\
pixi run -v rattler-build build --recipe %FEEDSTOCK_ROOT%\recipes\%%X\ ^
-m %FEEDSTOCK_ROOT%\conda_build_config.yaml ^
-c robostack-staging -c conda-forge ^
--output-dir %CONDA_BLD_PATH%
if errorlevel 1 exit 1
rem -m %FEEDSTOCK_ROOT%\.ci_support\conda_forge_pinnings.yaml
)
pixi run upload "%CONDA_BLD_PATH%\win-64\*.conda" --force
if errorlevel 1 exit 1
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
CURRENT_RECIPES: ros-humble-lanelet2-python ros-humble-lanelet2-examples ros-humble-lanelet2
PYTHONUNBUFFERED: 1
name: Build ros-humble-lanelet2-python ros-humble-lanelet2-examples ros-humble-lanelet2
name: build_win
on:
push:
branches:
- buildbranch_win
15 changes: 15 additions & 0 deletions activate.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
:: Generated by vinca http://github.com/RoboStack/vinca.
:: DO NOT EDIT!
@if not defined CONDA_PREFIX goto:eof

@REM Don't do anything when we are in conda build.
@if defined SYS_PREFIX exit /b 0

@set "QT_PLUGIN_PATH=%CONDA_PREFIX%\Library\plugins"

@call "%CONDA_PREFIX%\Library\local_setup.bat"
@set PYTHONHOME=
@set "ROS_OS_OVERRIDE=conda:win64"
@set "ROS_ETC_DIR=%CONDA_PREFIX%\Library\etc\ros"
@set "AMENT_PREFIX_PATH=%CONDA_PREFIX%\Library"
@set "AMENT_PYTHON_EXECUTABLE=%CONDA_PREFIX%\python.exe"
16 changes: 16 additions & 0 deletions activate.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Generated by vinca http://github.com/RoboStack/vinca.
# DO NOT EDIT!
if ($null -eq ${env:CONDA_PREFIX}) { Exit }

# Don't do anything when we are in conda build.
if ($null -ne ${env:SYS_PREFIX}) { Exit 0 }

$Env:QT_PLUGIN_PATH="${env:CONDA_PREFIX}\Library\plugins"

& "${env:CONDA_PREFIX}\Library\local_setup.ps1"

$Env:PYTHONHOME=''
$Env:ROS_OS_OVERRIDE='conda:win64'
$Env:ROS_ETC_DIR="${env:CONDA_PREFIX}\Library\etc\ros"
$Env:AMENT_PREFIX_PATH="${env:CONDA_PREFIX}\Library"
$Env:AMENT_PYTHON_EXECUTABLE="${env:CONDA_PREFIX}\python.exe"
Loading

0 comments on commit adada78

Please sign in to comment.