|
1 | | -# Placeholder, so that GitHub names this workflow path "build" in the Actions list. |
2 | | -# |
3 | | -# The real build.yaml lives on the buildbranch_<distro>_<platform> branches (pushed by |
4 | | -# main.yaml, generated by `rs <distro> gha`); every branch has its own, with |
5 | | -# `run-name: <distro> <platform>`. GitHub shows one workflow per path and takes its name |
6 | | -# from the default branch's file; without one on main it kept the name of the first |
7 | | -# branch that registered the path. This file is never triggered on its own. |
8 | | -name: build |
9 | | -on: |
10 | | - workflow_dispatch: |
11 | 1 | jobs: |
12 | | - placeholder: |
13 | | - runs-on: ubuntu-latest |
14 | | - permissions: {} |
| 2 | + stage_0_job_0: |
| 3 | + name: moveit-core |
| 4 | + runs-on: windows-2022 |
| 5 | + strategy: |
| 6 | + fail-fast: false |
| 7 | + env: |
| 8 | + CONDA_BLD_PATH: C:\\bld\\ |
| 9 | + VINCA_CUSTOM_CMAKE_BUILD_DIR: C:\\x\\ |
| 10 | + steps: |
| 11 | + - name: Checkout code |
| 12 | + uses: actions/checkout@v7 |
| 13 | + - name: Disable git auto-maintenance |
| 14 | + run: git config --global maintenance.auto false && git config --global gc.auto |
| 15 | + 0 |
| 16 | + - name: Setup pixi |
| 17 | + uses: prefix-dev/setup-pixi@v0.11.0 |
| 18 | + with: |
| 19 | + pixi-version: v0.81.0 |
| 20 | + cache: 'true' |
| 21 | + log-level: v |
| 22 | + frozen: 'true' |
| 23 | + - uses: egor-tensin/cleanup-path@v5 |
| 24 | + with: |
| 25 | + dirs: C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Program |
| 26 | + Files\Git\mingw64\bin |
| 27 | + - shell: cmd |
| 28 | + run: | |
| 29 | + set "CI=true" |
| 30 | +
|
| 31 | + :: 4 cores available on GHA: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners |
| 32 | + :: CPU_COUNT is passed through conda build: https://github.com/conda/conda-build/pull/1149 |
| 33 | + set CPU_COUNT=4 |
| 34 | +
|
| 35 | + set PYTHONUNBUFFERED=1 |
| 36 | +
|
| 37 | + call setup_x64 |
| 38 | +
|
| 39 | + :: Set the conda-build working directory to a smaller path |
| 40 | + if "%CONDA_BLD_PATH%" == "" ( |
| 41 | + set "CONDA_BLD_PATH=C:\\bld\\" |
| 42 | + ) |
| 43 | +
|
| 44 | + :: Hosted runners may have libcrypto*.dll & libssl*.dll under |
| 45 | + :: C:\\Windows\\System32, which should not be there (no vendor dlls in windows folder). |
| 46 | + :: They would be found before the openssl libs of the conda environment, so we delete them. |
| 47 | + if defined CI ( |
| 48 | + DEL C:\\Windows\\System32\\libcrypto-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libcrypto-1_1-x64.dll) |
| 49 | + DEL C:\\Windows\\System32\\libssl-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libssl-1_1-x64.dll) |
| 50 | + ) |
| 51 | +
|
| 52 | + :: Make paths like C:\\hostedtoolcache\\windows\\Ruby\\2.5.7\\x64\\bin garbage |
| 53 | + set "PATH=%PATH:ostedtoolcache=%" |
| 54 | + name: conda-forge build setup |
| 55 | + - shell: cmd |
| 56 | + run: call .scripts\build_win.bat |
| 57 | + env: |
| 58 | + ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN_LYRICAL }} |
| 59 | + CURRENT_RECIPES: ros2-moveit-core |
| 60 | + PYTHONUNBUFFERED: 1 |
| 61 | + name: Build |
| 62 | + - name: Keep build_timings.jsonl |
| 63 | + if: always() |
| 64 | + uses: actions/upload-artifact@v6 |
| 65 | + with: |
| 66 | + name: ${{ github.job }}-${{ github.run_attempt }} |
| 67 | + path: distros/lyrical/work/build_timings.jsonl |
| 68 | + if-no-files-found: ignore |
| 69 | + retention-days: 30 |
| 70 | + permissions: |
| 71 | + id-token: write |
| 72 | + contents: read |
| 73 | + attestations: write |
| 74 | + stage_0_job_1: |
| 75 | + name: ros-gz-bridge |
| 76 | + runs-on: windows-2022 |
| 77 | + strategy: |
| 78 | + fail-fast: false |
| 79 | + env: |
| 80 | + CONDA_BLD_PATH: C:\\bld\\ |
| 81 | + VINCA_CUSTOM_CMAKE_BUILD_DIR: C:\\x\\ |
| 82 | + steps: |
| 83 | + - name: Checkout code |
| 84 | + uses: actions/checkout@v7 |
| 85 | + - name: Disable git auto-maintenance |
| 86 | + run: git config --global maintenance.auto false && git config --global gc.auto |
| 87 | + 0 |
| 88 | + - name: Setup pixi |
| 89 | + uses: prefix-dev/setup-pixi@v0.11.0 |
| 90 | + with: |
| 91 | + pixi-version: v0.81.0 |
| 92 | + cache: 'true' |
| 93 | + log-level: v |
| 94 | + frozen: 'true' |
| 95 | + - uses: egor-tensin/cleanup-path@v5 |
| 96 | + with: |
| 97 | + dirs: C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Program |
| 98 | + Files\Git\mingw64\bin |
| 99 | + - shell: cmd |
| 100 | + run: | |
| 101 | + set "CI=true" |
| 102 | +
|
| 103 | + :: 4 cores available on GHA: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners |
| 104 | + :: CPU_COUNT is passed through conda build: https://github.com/conda/conda-build/pull/1149 |
| 105 | + set CPU_COUNT=4 |
| 106 | +
|
| 107 | + set PYTHONUNBUFFERED=1 |
| 108 | +
|
| 109 | + call setup_x64 |
| 110 | +
|
| 111 | + :: Set the conda-build working directory to a smaller path |
| 112 | + if "%CONDA_BLD_PATH%" == "" ( |
| 113 | + set "CONDA_BLD_PATH=C:\\bld\\" |
| 114 | + ) |
| 115 | +
|
| 116 | + :: Hosted runners may have libcrypto*.dll & libssl*.dll under |
| 117 | + :: C:\\Windows\\System32, which should not be there (no vendor dlls in windows folder). |
| 118 | + :: They would be found before the openssl libs of the conda environment, so we delete them. |
| 119 | + if defined CI ( |
| 120 | + DEL C:\\Windows\\System32\\libcrypto-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libcrypto-1_1-x64.dll) |
| 121 | + DEL C:\\Windows\\System32\\libssl-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libssl-1_1-x64.dll) |
| 122 | + ) |
| 123 | +
|
| 124 | + :: Make paths like C:\\hostedtoolcache\\windows\\Ruby\\2.5.7\\x64\\bin garbage |
| 125 | + set "PATH=%PATH:ostedtoolcache=%" |
| 126 | + name: conda-forge build setup |
| 127 | + - shell: cmd |
| 128 | + run: call .scripts\build_win.bat |
| 129 | + env: |
| 130 | + ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN_LYRICAL }} |
| 131 | + CURRENT_RECIPES: ros2-ros-gz-bridge |
| 132 | + PYTHONUNBUFFERED: 1 |
| 133 | + name: Build |
| 134 | + - name: Keep build_timings.jsonl |
| 135 | + if: always() |
| 136 | + uses: actions/upload-artifact@v6 |
| 137 | + with: |
| 138 | + name: ${{ github.job }}-${{ github.run_attempt }} |
| 139 | + path: distros/lyrical/work/build_timings.jsonl |
| 140 | + if-no-files-found: ignore |
| 141 | + retention-days: 30 |
| 142 | + permissions: |
| 143 | + id-token: write |
| 144 | + contents: read |
| 145 | + attestations: write |
| 146 | + stage_0_job_2: |
| 147 | + name: gz-dartsim-vendor pymoveit2 tf2-bullet |
| 148 | + runs-on: windows-2022 |
| 149 | + strategy: |
| 150 | + fail-fast: false |
| 151 | + env: |
| 152 | + CONDA_BLD_PATH: C:\\bld\\ |
| 153 | + VINCA_CUSTOM_CMAKE_BUILD_DIR: C:\\x\\ |
15 | 154 | steps: |
16 | | - - run: echo "Builds run from the buildbranch_<distro>_<platform> branches' own build.yaml." |
| 155 | + - name: Checkout code |
| 156 | + uses: actions/checkout@v7 |
| 157 | + - name: Disable git auto-maintenance |
| 158 | + run: git config --global maintenance.auto false && git config --global gc.auto |
| 159 | + 0 |
| 160 | + - name: Setup pixi |
| 161 | + uses: prefix-dev/setup-pixi@v0.11.0 |
| 162 | + with: |
| 163 | + pixi-version: v0.81.0 |
| 164 | + cache: 'true' |
| 165 | + log-level: v |
| 166 | + frozen: 'true' |
| 167 | + - uses: egor-tensin/cleanup-path@v5 |
| 168 | + with: |
| 169 | + dirs: C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Program |
| 170 | + Files\Git\mingw64\bin |
| 171 | + - shell: cmd |
| 172 | + run: | |
| 173 | + set "CI=true" |
| 174 | +
|
| 175 | + :: 4 cores available on GHA: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners |
| 176 | + :: CPU_COUNT is passed through conda build: https://github.com/conda/conda-build/pull/1149 |
| 177 | + set CPU_COUNT=4 |
| 178 | +
|
| 179 | + set PYTHONUNBUFFERED=1 |
| 180 | +
|
| 181 | + call setup_x64 |
| 182 | +
|
| 183 | + :: Set the conda-build working directory to a smaller path |
| 184 | + if "%CONDA_BLD_PATH%" == "" ( |
| 185 | + set "CONDA_BLD_PATH=C:\\bld\\" |
| 186 | + ) |
| 187 | +
|
| 188 | + :: Hosted runners may have libcrypto*.dll & libssl*.dll under |
| 189 | + :: C:\\Windows\\System32, which should not be there (no vendor dlls in windows folder). |
| 190 | + :: They would be found before the openssl libs of the conda environment, so we delete them. |
| 191 | + if defined CI ( |
| 192 | + DEL C:\\Windows\\System32\\libcrypto-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libcrypto-1_1-x64.dll) |
| 193 | + DEL C:\\Windows\\System32\\libssl-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libssl-1_1-x64.dll) |
| 194 | + ) |
| 195 | +
|
| 196 | + :: Make paths like C:\\hostedtoolcache\\windows\\Ruby\\2.5.7\\x64\\bin garbage |
| 197 | + set "PATH=%PATH:ostedtoolcache=%" |
| 198 | + name: conda-forge build setup |
| 199 | + - shell: cmd |
| 200 | + run: call .scripts\build_win.bat |
| 201 | + env: |
| 202 | + ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN_LYRICAL }} |
| 203 | + CURRENT_RECIPES: ros2-gz-dartsim-vendor ros2-pymoveit2 ros-lyrical-pymoveit2 |
| 204 | + ros2-tf2-bullet |
| 205 | + PYTHONUNBUFFERED: 1 |
| 206 | + name: Build |
| 207 | + - name: Keep build_timings.jsonl |
| 208 | + if: always() |
| 209 | + uses: actions/upload-artifact@v6 |
| 210 | + with: |
| 211 | + name: ${{ github.job }}-${{ github.run_attempt }} |
| 212 | + path: distros/lyrical/work/build_timings.jsonl |
| 213 | + if-no-files-found: ignore |
| 214 | + retention-days: 30 |
| 215 | + permissions: |
| 216 | + id-token: write |
| 217 | + contents: read |
| 218 | + attestations: write |
| 219 | + stage_1_job_3: |
| 220 | + name: gz-physics-vendor |
| 221 | + runs-on: windows-2022 |
| 222 | + strategy: |
| 223 | + fail-fast: false |
| 224 | + needs: |
| 225 | + - stage_0_job_0 |
| 226 | + - stage_0_job_1 |
| 227 | + - stage_0_job_2 |
| 228 | + env: |
| 229 | + CONDA_BLD_PATH: C:\\bld\\ |
| 230 | + VINCA_CUSTOM_CMAKE_BUILD_DIR: C:\\x\\ |
| 231 | + steps: |
| 232 | + - name: Checkout code |
| 233 | + uses: actions/checkout@v7 |
| 234 | + - name: Disable git auto-maintenance |
| 235 | + run: git config --global maintenance.auto false && git config --global gc.auto |
| 236 | + 0 |
| 237 | + - name: Setup pixi |
| 238 | + uses: prefix-dev/setup-pixi@v0.11.0 |
| 239 | + with: |
| 240 | + pixi-version: v0.81.0 |
| 241 | + cache: 'true' |
| 242 | + log-level: v |
| 243 | + frozen: 'true' |
| 244 | + - uses: egor-tensin/cleanup-path@v5 |
| 245 | + with: |
| 246 | + dirs: C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Program |
| 247 | + Files\Git\mingw64\bin |
| 248 | + - shell: cmd |
| 249 | + run: | |
| 250 | + set "CI=true" |
| 251 | +
|
| 252 | + :: 4 cores available on GHA: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners |
| 253 | + :: CPU_COUNT is passed through conda build: https://github.com/conda/conda-build/pull/1149 |
| 254 | + set CPU_COUNT=4 |
| 255 | +
|
| 256 | + set PYTHONUNBUFFERED=1 |
| 257 | +
|
| 258 | + call setup_x64 |
| 259 | +
|
| 260 | + :: Set the conda-build working directory to a smaller path |
| 261 | + if "%CONDA_BLD_PATH%" == "" ( |
| 262 | + set "CONDA_BLD_PATH=C:\\bld\\" |
| 263 | + ) |
| 264 | +
|
| 265 | + :: Hosted runners may have libcrypto*.dll & libssl*.dll under |
| 266 | + :: C:\\Windows\\System32, which should not be there (no vendor dlls in windows folder). |
| 267 | + :: They would be found before the openssl libs of the conda environment, so we delete them. |
| 268 | + if defined CI ( |
| 269 | + DEL C:\\Windows\\System32\\libcrypto-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libcrypto-1_1-x64.dll) |
| 270 | + DEL C:\\Windows\\System32\\libssl-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libssl-1_1-x64.dll) |
| 271 | + ) |
| 272 | +
|
| 273 | + :: Make paths like C:\\hostedtoolcache\\windows\\Ruby\\2.5.7\\x64\\bin garbage |
| 274 | + set "PATH=%PATH:ostedtoolcache=%" |
| 275 | + name: conda-forge build setup |
| 276 | + - shell: cmd |
| 277 | + run: call .scripts\build_win.bat |
| 278 | + env: |
| 279 | + ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN_LYRICAL }} |
| 280 | + CURRENT_RECIPES: ros2-gz-physics-vendor ros-lyrical-gz-physics-vendor |
| 281 | + PYTHONUNBUFFERED: 1 |
| 282 | + name: Build |
| 283 | + - name: Keep build_timings.jsonl |
| 284 | + if: always() |
| 285 | + uses: actions/upload-artifact@v6 |
| 286 | + with: |
| 287 | + name: ${{ github.job }}-${{ github.run_attempt }} |
| 288 | + path: distros/lyrical/work/build_timings.jsonl |
| 289 | + if-no-files-found: ignore |
| 290 | + retention-days: 30 |
| 291 | + permissions: |
| 292 | + id-token: write |
| 293 | + contents: read |
| 294 | + attestations: write |
| 295 | + stage_1_job_4: |
| 296 | + name: ros-gz-image |
| 297 | + runs-on: windows-2022 |
| 298 | + strategy: |
| 299 | + fail-fast: false |
| 300 | + needs: |
| 301 | + - stage_0_job_0 |
| 302 | + - stage_0_job_1 |
| 303 | + - stage_0_job_2 |
| 304 | + env: |
| 305 | + CONDA_BLD_PATH: C:\\bld\\ |
| 306 | + VINCA_CUSTOM_CMAKE_BUILD_DIR: C:\\x\\ |
| 307 | + steps: |
| 308 | + - name: Checkout code |
| 309 | + uses: actions/checkout@v7 |
| 310 | + - name: Disable git auto-maintenance |
| 311 | + run: git config --global maintenance.auto false && git config --global gc.auto |
| 312 | + 0 |
| 313 | + - name: Setup pixi |
| 314 | + uses: prefix-dev/setup-pixi@v0.11.0 |
| 315 | + with: |
| 316 | + pixi-version: v0.81.0 |
| 317 | + cache: 'true' |
| 318 | + log-level: v |
| 319 | + frozen: 'true' |
| 320 | + - uses: egor-tensin/cleanup-path@v5 |
| 321 | + with: |
| 322 | + dirs: C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Program |
| 323 | + Files\Git\mingw64\bin |
| 324 | + - shell: cmd |
| 325 | + run: | |
| 326 | + set "CI=true" |
| 327 | +
|
| 328 | + :: 4 cores available on GHA: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners |
| 329 | + :: CPU_COUNT is passed through conda build: https://github.com/conda/conda-build/pull/1149 |
| 330 | + set CPU_COUNT=4 |
| 331 | +
|
| 332 | + set PYTHONUNBUFFERED=1 |
| 333 | +
|
| 334 | + call setup_x64 |
| 335 | +
|
| 336 | + :: Set the conda-build working directory to a smaller path |
| 337 | + if "%CONDA_BLD_PATH%" == "" ( |
| 338 | + set "CONDA_BLD_PATH=C:\\bld\\" |
| 339 | + ) |
| 340 | +
|
| 341 | + :: Hosted runners may have libcrypto*.dll & libssl*.dll under |
| 342 | + :: C:\\Windows\\System32, which should not be there (no vendor dlls in windows folder). |
| 343 | + :: They would be found before the openssl libs of the conda environment, so we delete them. |
| 344 | + if defined CI ( |
| 345 | + DEL C:\\Windows\\System32\\libcrypto-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libcrypto-1_1-x64.dll) |
| 346 | + DEL C:\\Windows\\System32\\libssl-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libssl-1_1-x64.dll) |
| 347 | + ) |
| 348 | +
|
| 349 | + :: Make paths like C:\\hostedtoolcache\\windows\\Ruby\\2.5.7\\x64\\bin garbage |
| 350 | + set "PATH=%PATH:ostedtoolcache=%" |
| 351 | + name: conda-forge build setup |
| 352 | + - shell: cmd |
| 353 | + run: call .scripts\build_win.bat |
| 354 | + env: |
| 355 | + ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN_LYRICAL }} |
| 356 | + CURRENT_RECIPES: ros2-ros-gz-image |
| 357 | + PYTHONUNBUFFERED: 1 |
| 358 | + name: Build |
| 359 | + - name: Keep build_timings.jsonl |
| 360 | + if: always() |
| 361 | + uses: actions/upload-artifact@v6 |
| 362 | + with: |
| 363 | + name: ${{ github.job }}-${{ github.run_attempt }} |
| 364 | + path: distros/lyrical/work/build_timings.jsonl |
| 365 | + if-no-files-found: ignore |
| 366 | + retention-days: 30 |
| 367 | + permissions: |
| 368 | + id-token: write |
| 369 | + contents: read |
| 370 | + attestations: write |
| 371 | +name: build |
| 372 | +run-name: lyrical win-64 |
| 373 | +concurrency: |
| 374 | + group: build-lyrical-win-64 |
| 375 | + cancel-in-progress: true |
| 376 | +on: |
| 377 | + push: |
| 378 | + branches: |
| 379 | + - buildbranch_lyrical_win_64 |
| 380 | +env: |
| 381 | + ROBOSTACK_DISTRO: lyrical |
| 382 | + # optional repository variable: upload to this prefix.dev channel instead |
| 383 | + # (e.g. a test channel), or 'none' to only build |
| 384 | + ROBOSTACK_UPLOAD_CHANNEL: ${{ vars.ROBOSTACK_UPLOAD_CHANNEL }} |
0 commit comments