Update Windows action for rolling #426
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: rclnodejs - Windows Build & Test | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| - jazzy | |
| - humble-hawksbill | |
| pull_request: | |
| branches: | |
| - develop | |
| - jazzy | |
| - humble-hawksbill | |
| workflow_dispatch: | |
| jobs: | |
| identify-ros-distro: | |
| uses: ./.github/workflows/identify-ros-distro.yml | |
| build: | |
| needs: identify-ros-distro | |
| runs-on: windows-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [22.X] | |
| steps: | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install 7-Zip | |
| shell: powershell | |
| run: | | |
| choco install 7zip wget -y | |
| - name: Install ROS2 Rolling (Conditional) | |
| if: ${{ needs.identify-ros-distro.outputs.distro == 'rolling' }} | |
| shell: bash | |
| run: | | |
| wget --quiet https://ci.ros2.org/view/packaging/job/packaging_windows/lastSuccessfulBuild/artifact/ws/ros2-package-windows-AMD64.zip -O rolling.zip | |
| 7z x rolling.zip -y -o/c/dev/rolling | |
| - uses: prefix-dev/[email protected] | |
| with: | |
| run-install: false | |
| - run: | | |
| cd C:\dev | |
| irm https://raw.githubusercontent.com/ros2/ros2/refs/heads/rolling/pixi.toml -OutFile pixi.toml | |
| pixi install | |
| pixi shell | |
| - uses: actions/checkout@v4 | |
| - name: Build rclnodejs | |
| shell: cmd | |
| run: | | |
| call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\local_setup.bat" | |
| npm i | |
| - name: Test rclnodejs | |
| shell: cmd | |
| run: | | |
| cd C:\dev | |
| irm https://raw.githubusercontent.com/ros2/ros2/refs/heads/rolling/pixi.toml -OutFile pixi.toml | |
| pixi shell | |
| call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\local_setup.bat" | |
| ros2 run demo_nodes_py talker |