From 23f869008adea8f952737821cdea54d94869cdff Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Wed, 23 Apr 2025 15:16:49 +0800 Subject: [PATCH 01/24] Update Windows action for rolling --- .github/workflows/windows-build-and-test.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index d6daa6d2..2524d16a 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -30,11 +30,22 @@ jobs: with: node-version: ${{ matrix.node-version }} + - name: Install pixi + shell: cmd + run: | + irm -useb https://pixi.sh/install.ps1 | iex + - name: Setup ROS2 uses: ros-tooling/setup-ros@v0.7 with: required-ros-distributions: ${{ needs.identify-ros-distro.outputs.distro }} + - name: Install dependencies + shell: cmd + run: | + irm https://raw.githubusercontent.com/ros2/ros2/refs/heads/rolling/pixi.toml -OutFile pixi.toml + pixi install + - name: Install ROS2 Rolling (Conditional) if: ${{ needs.identify-ros-distro.outputs.distro == 'rolling' }} shell: bash @@ -42,9 +53,6 @@ jobs: 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 - - name: Prebuild - Setup VS Dev Environment - uses: seanmiddleditch/gha-setup-vsdevenv@v4 - - uses: actions/checkout@v4 - name: Build rclnodejs @@ -58,6 +66,7 @@ jobs: - name: Test rclnodejs shell: cmd run: | + pixi shell call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\setup.bat" cmd /c "if ${{ needs.identify-ros-distro.outputs.distro }}==foxy (set RMW_IMPLEMENTATION=rmw_cyclonedds_cpp&&npm test)" cmd /c "if NOT ${{ needs.identify-ros-distro.outputs.distro }}==foxy if NOT ${{ needs.identify-ros-distro.outputs.distro }}==rolling (npm test)" From 387e02cc923a72b0ed126c41388b88d514f457ef Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Wed, 23 Apr 2025 15:31:47 +0800 Subject: [PATCH 02/24] Use powershell --- .github/workflows/windows-build-and-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index 2524d16a..734c482e 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -31,7 +31,7 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install pixi - shell: cmd + shell: powershell run: | irm -useb https://pixi.sh/install.ps1 | iex @@ -41,7 +41,7 @@ jobs: required-ros-distributions: ${{ needs.identify-ros-distro.outputs.distro }} - name: Install dependencies - shell: cmd + shell: powershell run: | irm https://raw.githubusercontent.com/ros2/ros2/refs/heads/rolling/pixi.toml -OutFile pixi.toml pixi install From 84806e03d84e687372c289ffbc6aee7e08e4a44e Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Wed, 23 Apr 2025 15:41:54 +0800 Subject: [PATCH 03/24] Fix issue --- .github/workflows/windows-build-and-test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index 734c482e..73a84796 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -55,6 +55,11 @@ jobs: - uses: actions/checkout@v4 + - name: Open new PowerShell session + shell: powershell + run: | + start-process powershell -ArgumentList '-NoExit', '-Command', 'Write-Host "New PowerShell session started"' + - name: Build rclnodejs shell: cmd run: | From c82d921f88c4e1d622df3f3ce0f328eebe7faae1 Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Wed, 23 Apr 2025 15:47:31 +0800 Subject: [PATCH 04/24] Fix issue --- .github/workflows/windows-build-and-test.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index 73a84796..e7adb2ce 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -40,6 +40,11 @@ jobs: with: required-ros-distributions: ${{ needs.identify-ros-distro.outputs.distro }} + - name: Open new PowerShell session + shell: powershell + run: | + start-process powershell -ArgumentList '-NoExit', '-Command', 'Write-Host "New PowerShell session started"' + - name: Install dependencies shell: powershell run: | @@ -55,11 +60,6 @@ jobs: - uses: actions/checkout@v4 - - name: Open new PowerShell session - shell: powershell - run: | - start-process powershell -ArgumentList '-NoExit', '-Command', 'Write-Host "New PowerShell session started"' - - name: Build rclnodejs shell: cmd run: | From 032efc80f4eccb2ba35ff19dd0f47fb1852b73f0 Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Wed, 23 Apr 2025 16:12:20 +0800 Subject: [PATCH 05/24] Fix issue --- .github/workflows/windows-build-and-test.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index e7adb2ce..3d72d7fb 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -34,16 +34,7 @@ jobs: shell: powershell run: | irm -useb https://pixi.sh/install.ps1 | iex - - - name: Setup ROS2 - uses: ros-tooling/setup-ros@v0.7 - with: - required-ros-distributions: ${{ needs.identify-ros-distro.outputs.distro }} - - - name: Open new PowerShell session - shell: powershell - run: | - start-process powershell -ArgumentList '-NoExit', '-Command', 'Write-Host "New PowerShell session started"' + exit - name: Install dependencies shell: powershell @@ -51,6 +42,11 @@ jobs: irm https://raw.githubusercontent.com/ros2/ros2/refs/heads/rolling/pixi.toml -OutFile pixi.toml pixi install + - name: Install 7-Zip + shell: powershell + run: | + choco install 7zip -y + - name: Install ROS2 Rolling (Conditional) if: ${{ needs.identify-ros-distro.outputs.distro == 'rolling' }} shell: bash From 2a07e953cc0cee6c233c2b70fb8a424c0211d062 Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Wed, 23 Apr 2025 16:39:40 +0800 Subject: [PATCH 06/24] Fix issue --- .github/workflows/windows-build-and-test.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index 3d72d7fb..15fc3c17 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -34,7 +34,25 @@ jobs: shell: powershell run: | irm -useb https://pixi.sh/install.ps1 | iex - exit + # Instead of exit, refresh PATH to ensure new commands are available + $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") + + # # Add this step if you specifically need to refresh all environment variables + # - name: Refresh environment + # shell: powershell + # run: | + # # Reload all environment variables + # foreach($level in "Machine","User") { + # [Environment]::GetEnvironmentVariables($level).GetEnumerator() | % { + # # For Path variables, append rather than replace + # if($_.Name -match 'Path$') { + # $_.Value = [Environment]::GetEnvironmentVariable($_.Name, $level) + # } + # # Set the variable in current session + # [Environment]::SetEnvironmentVariable($_.Name, $_.Value) + # } + # } + # Write-Host "Environment refreshed" - name: Install dependencies shell: powershell From 64f6bb80010ead42cddbe0b40ec2e937caeedbfb Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Wed, 23 Apr 2025 16:46:50 +0800 Subject: [PATCH 07/24] Fix issue --- .github/workflows/windows-build-and-test.yml | 32 ++++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index 15fc3c17..ebeb06e8 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -37,22 +37,22 @@ jobs: # Instead of exit, refresh PATH to ensure new commands are available $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") - # # Add this step if you specifically need to refresh all environment variables - # - name: Refresh environment - # shell: powershell - # run: | - # # Reload all environment variables - # foreach($level in "Machine","User") { - # [Environment]::GetEnvironmentVariables($level).GetEnumerator() | % { - # # For Path variables, append rather than replace - # if($_.Name -match 'Path$') { - # $_.Value = [Environment]::GetEnvironmentVariable($_.Name, $level) - # } - # # Set the variable in current session - # [Environment]::SetEnvironmentVariable($_.Name, $_.Value) - # } - # } - # Write-Host "Environment refreshed" + # Add this step if you specifically need to refresh all environment variables + - name: Refresh environment + shell: powershell + run: | + # Reload all environment variables + foreach($level in "Machine","User") { + [Environment]::GetEnvironmentVariables($level).GetEnumerator() | % { + # For Path variables, append rather than replace + if($_.Name -match 'Path$') { + $_.Value = [Environment]::GetEnvironmentVariable($_.Name, $level) + } + # Set the variable in current session + [Environment]::SetEnvironmentVariable($_.Name, $_.Value) + } + } + Write-Host "Environment refreshed" - name: Install dependencies shell: powershell From f2ce8894157a9995071b02be6a6715df2c794cc2 Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Wed, 23 Apr 2025 17:21:52 +0800 Subject: [PATCH 08/24] Fix issue --- .github/workflows/windows-build-and-test.yml | 31 +++----------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index ebeb06e8..ebc55921 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -30,33 +30,10 @@ jobs: with: node-version: ${{ matrix.node-version }} - - name: Install pixi - shell: powershell - run: | - irm -useb https://pixi.sh/install.ps1 | iex - # Instead of exit, refresh PATH to ensure new commands are available - $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") - - # Add this step if you specifically need to refresh all environment variables - - name: Refresh environment - shell: powershell - run: | - # Reload all environment variables - foreach($level in "Machine","User") { - [Environment]::GetEnvironmentVariables($level).GetEnumerator() | % { - # For Path variables, append rather than replace - if($_.Name -match 'Path$') { - $_.Value = [Environment]::GetEnvironmentVariable($_.Name, $level) - } - # Set the variable in current session - [Environment]::SetEnvironmentVariable($_.Name, $_.Value) - } - } - Write-Host "Environment refreshed" - - - name: Install dependencies - shell: powershell - run: | + - uses: prefix-dev/setup-pixi@v0.8.8 + with: + pixi-version: v0.44.0 + - run: | irm https://raw.githubusercontent.com/ros2/ros2/refs/heads/rolling/pixi.toml -OutFile pixi.toml pixi install From 27afcecb533d8afa0e4f4af8ce234c3596f6b316 Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Wed, 23 Apr 2025 17:30:30 +0800 Subject: [PATCH 09/24] Fix issue --- .github/workflows/windows-build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index ebc55921..a141d1ca 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -32,7 +32,7 @@ jobs: - uses: prefix-dev/setup-pixi@v0.8.8 with: - pixi-version: v0.44.0 + activate-environment: true - run: | irm https://raw.githubusercontent.com/ros2/ros2/refs/heads/rolling/pixi.toml -OutFile pixi.toml pixi install From 68a11dc48938629be6691a96459103b94011a4c3 Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Wed, 23 Apr 2025 17:32:51 +0800 Subject: [PATCH 10/24] Fix issue --- .github/workflows/windows-build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index a141d1ca..bde0dc24 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -32,7 +32,7 @@ jobs: - uses: prefix-dev/setup-pixi@v0.8.8 with: - activate-environment: true + run-install: false - run: | irm https://raw.githubusercontent.com/ros2/ros2/refs/heads/rolling/pixi.toml -OutFile pixi.toml pixi install From 4c56999421e05b6ef12bc9deca1dfe8a2142f77a Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Wed, 23 Apr 2025 17:38:30 +0800 Subject: [PATCH 11/24] Install wget --- .github/workflows/windows-build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index bde0dc24..f317cf6d 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -40,7 +40,7 @@ jobs: - name: Install 7-Zip shell: powershell run: | - choco install 7zip -y + choco install 7zip wget -y - name: Install ROS2 Rolling (Conditional) if: ${{ needs.identify-ros-distro.outputs.distro == 'rolling' }} From ab75d8878345e238dfb7e4468d66c82e0817ef76 Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Wed, 23 Apr 2025 18:32:36 +0800 Subject: [PATCH 12/24] Fix issue --- .github/workflows/windows-build-and-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index f317cf6d..082a2c62 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -54,7 +54,7 @@ jobs: - name: Build rclnodejs shell: cmd run: | - call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\setup.bat" + call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\local_setup.bat" npm i # On the windows/foxy combination the Eclipse CycloneDDS RMW implementation is used to workaround @@ -63,6 +63,6 @@ jobs: shell: cmd run: | pixi shell - call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\setup.bat" + call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\local_setup.bat" cmd /c "if ${{ needs.identify-ros-distro.outputs.distro }}==foxy (set RMW_IMPLEMENTATION=rmw_cyclonedds_cpp&&npm test)" cmd /c "if NOT ${{ needs.identify-ros-distro.outputs.distro }}==foxy if NOT ${{ needs.identify-ros-distro.outputs.distro }}==rolling (npm test)" From 6e1026d198da8488c50a2940235ada883b0773a4 Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Wed, 23 Apr 2025 18:53:03 +0800 Subject: [PATCH 13/24] Fix issue --- .github/workflows/windows-build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index 082a2c62..4a96ae6d 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -19,7 +19,7 @@ jobs: build: needs: identify-ros-distro - runs-on: windows-2019 + runs-on: windows-latest strategy: fail-fast: false matrix: From 60b3d31f4cf7b2ee7ddf2adf8a74dcf9e0765c3b Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Thu, 24 Apr 2025 10:36:09 +0800 Subject: [PATCH 14/24] Fix issue --- .github/workflows/windows-build-and-test.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index 4a96ae6d..99973742 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -44,7 +44,7 @@ jobs: - name: Install ROS2 Rolling (Conditional) if: ${{ needs.identify-ros-distro.outputs.distro == 'rolling' }} - shell: bash + shell: powershell 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 @@ -52,7 +52,7 @@ jobs: - uses: actions/checkout@v4 - name: Build rclnodejs - shell: cmd + shell: powershell run: | call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\local_setup.bat" npm i @@ -60,9 +60,7 @@ jobs: # On the windows/foxy combination the Eclipse CycloneDDS RMW implementation is used to workaround # an error when loading the default fastrtps ddl - name: Test rclnodejs - shell: cmd + shell: powershell run: | - pixi shell call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\local_setup.bat" - cmd /c "if ${{ needs.identify-ros-distro.outputs.distro }}==foxy (set RMW_IMPLEMENTATION=rmw_cyclonedds_cpp&&npm test)" - cmd /c "if NOT ${{ needs.identify-ros-distro.outputs.distro }}==foxy if NOT ${{ needs.identify-ros-distro.outputs.distro }}==rolling (npm test)" + npm test From 777656b3aaf4a55acd7a4a4811b6b04614a73a83 Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Thu, 24 Apr 2025 10:54:04 +0800 Subject: [PATCH 15/24] Fix issue --- .github/workflows/windows-build-and-test.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index 99973742..7147e30d 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -44,7 +44,7 @@ jobs: - name: Install ROS2 Rolling (Conditional) if: ${{ needs.identify-ros-distro.outputs.distro == 'rolling' }} - shell: powershell + 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 @@ -52,15 +52,8 @@ jobs: - uses: actions/checkout@v4 - name: Build rclnodejs - shell: powershell + shell: cmd run: | call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\local_setup.bat" npm i - - # On the windows/foxy combination the Eclipse CycloneDDS RMW implementation is used to workaround - # an error when loading the default fastrtps ddl - - name: Test rclnodejs - shell: powershell - run: | - call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\local_setup.bat" npm test From 9b74a6f5a1991fb99d5401cd5db7e2020702fb84 Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Thu, 24 Apr 2025 11:21:26 +0800 Subject: [PATCH 16/24] Fix issue --- .github/workflows/windows-build-and-test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index 7147e30d..58bc066e 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -57,3 +57,9 @@ jobs: call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\local_setup.bat" npm i npm test + + - name: Test rclnodejs + shell: cmd + run: | + call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\local_setup.bat" + npm test From 719275ade8104390b124c1712e1c507250d6fe81 Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Thu, 24 Apr 2025 12:44:03 +0800 Subject: [PATCH 17/24] Fix issue --- .github/workflows/windows-build-and-test.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index 58bc066e..1e134335 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -56,10 +56,9 @@ jobs: run: | call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\local_setup.bat" npm i - npm test - name: Test rclnodejs shell: cmd run: | call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\local_setup.bat" - npm test + ros2 run demo_nodes_py talker From 805f6ea737da5f60d8c8bfaf24617e959b5ab251 Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Thu, 24 Apr 2025 13:18:07 +0800 Subject: [PATCH 18/24] Fix issue --- .github/workflows/windows-build-and-test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index 1e134335..f2040c01 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -60,5 +60,7 @@ jobs: - name: Test rclnodejs shell: cmd run: | - call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\local_setup.bat" + cd C:\dev + pixi shell + call "${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\local_setup.bat" ros2 run demo_nodes_py talker From 1a2a1e2f7fbef60fc115da4ccd04aa4ea7a00baf Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Thu, 24 Apr 2025 13:43:43 +0800 Subject: [PATCH 19/24] Fix issue --- .github/workflows/windows-build-and-test.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index f2040c01..d7aec595 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -30,13 +30,6 @@ jobs: with: node-version: ${{ matrix.node-version }} - - uses: prefix-dev/setup-pixi@v0.8.8 - with: - run-install: false - - run: | - irm https://raw.githubusercontent.com/ros2/ros2/refs/heads/rolling/pixi.toml -OutFile pixi.toml - pixi install - - name: Install 7-Zip shell: powershell run: | @@ -49,6 +42,15 @@ jobs: 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/setup-pixi@v0.8.8 + 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 From 6415b8a56489535113efa2cec2e2ac874a7dee0d Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Thu, 24 Apr 2025 13:58:51 +0800 Subject: [PATCH 20/24] fix issue --- .github/workflows/windows-build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index d7aec595..0c0f85bf 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -64,5 +64,5 @@ jobs: run: | cd C:\dev pixi shell - call "${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\local_setup.bat" + call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\local_setup.bat" ros2 run demo_nodes_py talker From 5f9e7fb2a5e5e8471bd77ff4969a9557f13f8ec5 Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Thu, 24 Apr 2025 14:15:42 +0800 Subject: [PATCH 21/24] fix issue --- .github/workflows/windows-build-and-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index 0c0f85bf..fded9ebe 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -63,6 +63,7 @@ jobs: 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 From b03d32ce2f0bbf96b9daeeeeb86082b5fa7d7889 Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Thu, 24 Apr 2025 14:39:58 +0800 Subject: [PATCH 22/24] Fix issue --- .github/workflows/windows-build-and-test.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index fded9ebe..38ae6c9f 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -49,7 +49,15 @@ jobs: cd C:\dev irm https://raw.githubusercontent.com/ros2/ros2/refs/heads/rolling/pixi.toml -OutFile pixi.toml pixi install + + + - name: Source the pixi environment + shell: cmd + run: | + cd C:\dev pixi shell + call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\local_setup.bat" + ros2 run demo_nodes_py talker - uses: actions/checkout@v4 @@ -62,8 +70,5 @@ jobs: - 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 From a3b3a06df53004921a908cf5f9997c4e2d408343 Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Fri, 25 Apr 2025 18:04:04 +0800 Subject: [PATCH 23/24] Rebase --- .github/workflows/windows-build-and-test.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index 38ae6c9f..3c129f36 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -57,7 +57,6 @@ jobs: cd C:\dev pixi shell call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\local_setup.bat" - ros2 run demo_nodes_py talker - uses: actions/checkout@v4 @@ -71,4 +70,4 @@ jobs: shell: cmd run: | call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\local_setup.bat" - ros2 run demo_nodes_py talker + npm test From 3d4757832e7e24c4fb5007cf1141b39953638d14 Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Thu, 1 May 2025 21:35:35 +0800 Subject: [PATCH 24/24] Use Kilted Kaiju Beta --- .github/workflows/windows-build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index 3c129f36..d3c84231 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -39,7 +39,7 @@ jobs: 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 + wget --quiet https://github.com/ros2/ros2/releases/download/release-kilted-beta-20250430/ros2-kilted-beta-20250430-windows-release-amd64.zip -O rolling.zip 7z x rolling.zip -y -o/c/dev/rolling - uses: prefix-dev/setup-pixi@v0.8.8