Skip to content

Commit 0d8ac0b

Browse files
committed
Update Windows action for rolling
1 parent c21bdcd commit 0d8ac0b

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/windows-build-and-test.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,29 @@ jobs:
3131
with:
3232
node-version: ${{ matrix.node-version }}
3333

34+
- name: Install pixi
35+
shell: cmd
36+
run: |
37+
irm -useb https://pixi.sh/install.ps1 | iex
38+
3439
- name: Setup ROS2
3540
uses: ros-tooling/[email protected]
3641
with:
3742
required-ros-distributions: ${{ needs.identify-ros-distro.outputs.distro }}
3843

44+
- name: Install dependencies
45+
shell: cmd
46+
run: |
47+
irm https://raw.githubusercontent.com/ros2/ros2/refs/heads/rolling/pixi.toml -OutFile pixi.toml
48+
pixi install
49+
3950
- name: Install ROS2 Rolling (Conditional)
4051
if: ${{ needs.identify-ros-distro.outputs.distro == 'rolling' }}
4152
shell: bash
4253
run: |
4354
wget --quiet https://ci.ros2.org/view/packaging/job/packaging_windows/lastSuccessfulBuild/artifact/ws/ros2-package-windows-AMD64.zip -O rolling.zip
4455
7z x rolling.zip -y -o/c/dev/rolling
4556
46-
- name: Prebuild - Setup VS Dev Environment
47-
uses: seanmiddleditch/gha-setup-vsdevenv@v4
48-
4957
- uses: actions/checkout@v4
5058

5159
- name: Build rclnodejs
@@ -59,6 +67,7 @@ jobs:
5967
- name: Test rclnodejs
6068
shell: cmd
6169
run: |
70+
pixi shell
6271
call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\setup.bat"
6372
cmd /c "if ${{ needs.identify-ros-distro.outputs.distro }}==foxy (set RMW_IMPLEMENTATION=rmw_cyclonedds_cpp&&npm test)"
6473
cmd /c "if NOT ${{ needs.identify-ros-distro.outputs.distro }}==foxy (npm test)"

0 commit comments

Comments
 (0)