Skip to content

Commit

Permalink
Merge pull request #439 from toppers/win-build2
Browse files Browse the repository at this point in the history
add win build
  • Loading branch information
buildko89 authored Dec 15, 2024
2 parents b98ad1b + e2d47d8 commit a0baf4e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- name: Setup cmake
Expand All @@ -32,6 +32,22 @@ jobs:
if: startsWith(matrix.os, 'macos')
run: brew install googletest

- name: Build and hakoniwa-px4sim on Windows
if: ${{ matrix.os == 'windows-latest' }}
run: |
cmake -G "Visual Studio 17 2022" -A x64 .
cmake --build . --config Release
# Build and Test drone_physics on Windows with Visual Studio
- name: Build and Test drone_physics on Windows
if: startsWith(matrix.os, 'windows')
shell: cmd
run: |
cd drone_physics
cmake -G "Visual Studio 17 2022" -A x64 .
cmake --build . --config Release
ctest -C Release --output-on-failure
- name: Build and Test hakoniwa-px4sim/drone_physics on ubuntu
if: startsWith(matrix.os, 'ubuntu')
run: |
Expand All @@ -43,6 +59,8 @@ jobs:
cd drone_physics && cmake . && make && make test
- name: Build and Test hakoniwa-px4sim/hakoniwa
if: ${{ matrix.os != 'windows-latest' }}
run: |
cd hakoniwa && bash build.bash && cd cmake-build && test/hako-px4sim-test

0 comments on commit a0baf4e

Please sign in to comment.