Skip to content

Commit

Permalink
add test workflow for Windows
Browse files Browse the repository at this point in the history
Since Windows setup is more complicated than Ubuntu
the workflow relies on `ros-tooling/setup-ros` and
`ros-tooling/action-ros-ci` while skipping the build script
because of ros-tooling/setup-ros#552.
  • Loading branch information
Deric-W committed May 12, 2023
1 parent 237d77a commit 2507275
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test_windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test on Windows
on:
workflow_dispatch:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
test_windows:
strategy:
matrix:
os: [windows-2019]
ros-distribution: [humble]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout source
uses: actions/checkout@v3

- name: Install .NET SDK 6.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: "6"

- name: Setup ROS2
uses: ros-tooling/setup-ros@v0.6
with:
required-ros-distributions: ${{ matrix.ros-distribution }}

- name: Build Tests
uses: ros-tooling/action-ros-ci@v0.3
with:
package-name: ros2cs_tests
vcs-repo-file-url: file://ros2_${{ matrix.ros-distribution }}.repos
extra-cmake-args: -DBUILD_TESTING=1
target-ros2-distro: ${{ matrix.ros-distribution }}


0 comments on commit 2507275

Please sign in to comment.