Skip to content

Commit 1078f8a

Browse files
committed
[NOT MERGE] Test on Windows
1 parent 1502f32 commit 1078f8a

File tree

1 file changed

+27
-19
lines changed

1 file changed

+27
-19
lines changed

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

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,44 +23,52 @@ jobs:
2323
matrix:
2424
node-version: [22.X]
2525
ros_distribution:
26-
- humble
27-
- jazzy
2826
- kilted
29-
- rolling
3027
steps:
3128
- name: Setup Node.js ${{ matrix.node-version }}
3229
uses: actions/setup-node@v4
3330
with:
3431
node-version: ${{ matrix.node-version }}
3532

36-
- name: Setup ROS2
37-
uses: ros-tooling/setup-ros@v0.7
38-
with:
39-
required-ros-distributions: ${{ matrix.ros_distribution }}
33+
- name: Install pixi
34+
shell: powershell
35+
run: |
36+
irm -useb https://pixi.sh/install.ps1 | iex
37+
38+
- name: Install dependencies
39+
shell: powershell
40+
run: |
41+
irm https://raw.githubusercontent.com/ros2/ros2/refs/heads/kilted/pixi.toml -OutFile pixi.toml
42+
pixi install
43+
44+
- name: Install 7-Zip
45+
shell: powershell
46+
run: |
47+
choco install 7zip wget -y
4048
4149
- name: Install ROS2 Rolling (Conditional)
42-
if: ${{ matrix.ros_distribution == 'rolling' }}
4350
shell: bash
4451
run: |
45-
wget --quiet https://ci.ros2.org/view/packaging/job/packaging_windows/lastSuccessfulBuild/artifact/ws/ros2-package-windows-AMD64.zip -O rolling.zip
46-
7z x rolling.zip -y -o/c/dev/rolling
47-
48-
- name: Prebuild - Setup VS Dev Environment
49-
uses: seanmiddleditch/gha-setup-vsdevenv@v4
52+
wget --quiet https://github.com/ros2/ros2/releases/download/release-kilted-20250523/ros2-kilted-20250523-windows-release-amd64.zip -O rolling.zip
53+
7z x rolling.zip -y -o/c/dev/kilted
5054
5155
- uses: actions/checkout@v4
5256

5357
- name: Build rclnodejs
5458
shell: cmd
5559
run: |
56-
set RMW_IMPLEMENTATION=rmw_fastrtps_cpp
57-
call "c:\dev\${{ matrix.ros_distribution }}\ros2-windows\setup.bat"
60+
call "c:\dev\kilted\ros2-windows\setup.bat"
5861
npm i
5962
60-
# On the windows/foxy combination the Eclipse CycloneDDS RMW implementation is used to workaround
61-
# an error when loading the default fastrtps ddl
63+
- name: Test rclnodejs
64+
shell: powershell
65+
run: |
66+
pixi shell
67+
call "c:\dev\kilted\ros2-windows\setup.bat"
68+
npm test
69+
6270
- name: Test rclnodejs
6371
shell: cmd
6472
run: |
65-
set RMW_IMPLEMENTATION=rmw_fastrtps_cpp
66-
call "c:\dev\${{ matrix.ros_distribution }}\ros2-windows\setup.bat"
73+
call "c:\dev\kilted\ros2-windows\local_setup.bat"
74+
npm test

0 commit comments

Comments
 (0)