Update Windows action for rolling #569
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Windows | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| - kilted | |
| - jazzy | |
| - humble-hawksbill | |
| pull_request: | |
| branches: | |
| - develop | |
| - kilted | |
| - jazzy | |
| - humble-hawksbill | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: windows-2019 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [22.X] | |
| ros_distribution: | |
| - kilted | |
| steps: | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install pixi | |
| shell: powershell | |
| run: | | |
| irm -useb https://pixi.sh/install.ps1 | iex | |
| # Refresh PATH environment | |
| $env:Path = [System.Environment]::GetEnvironmentVariable("Path","User") + ";" + [System.Environment]::GetEnvironmentVariable("Path","Machine") | |
| # Show installation location | |
| Write-Host "Pixi installed at: $(where.exe pixi)" | |
| - name: Install dependencies | |
| shell: powershell | |
| run: | | |
| # Ensure pixi is accessible by using the full path | |
| $pixiPath = "$env:USERPROFILE\.pixi\bin\pixi.exe" | |
| irm https://raw.githubusercontent.com/ros2/ros2/refs/heads/kilted/pixi.toml -OutFile pixi.toml | |
| & $pixiPath install | |
| & $pixiPath shell | |
| - name: Install 7-Zip | |
| shell: powershell | |
| run: | | |
| choco install 7zip wget -y | |
| - name: Install ROS2 Rolling (Conditional) | |
| shell: bash | |
| run: | | |
| wget --quiet https://github.com/ros2/ros2/releases/download/release-kilted-20250523/ros2-kilted-20250523-windows-release-amd64.zip -O rolling.zip | |
| 7z x rolling.zip -y -o/c/dev/kilted | |
| - uses: actions/checkout@v4 | |
| - name: Build rclnodejs | |
| shell: cmd | |
| run: | | |
| call "c:\dev\kilted\ros2-windows\setup.bat" | |
| npm i | |
| - name: Test rclnodejs | |
| shell: cmd | |
| run: | | |
| call "c:\dev\kilted\ros2-windows\local_setup.bat" | |
| npm test |