Skip to content

Commit

Permalink
Malvarado/windows ci (#170)
Browse files Browse the repository at this point in the history
* Have CI build under windows

* Fix syntax error

* Source updates
  • Loading branch information
mattalvarado authored Nov 25, 2024
1 parent e9d8bdc commit 87aa331
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,18 @@ jobs:
cmake --build build -j "$(nproc)"
make -C build test
cmake --install build
buildwindows:
name: build for windows
runs-on: windows-2022

steps:
- uses: actions/checkout@v4
- id: build-release
run: |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release
cmake --build ${{github.workspace}}/build --config Release --target install -- /m:10
- id: build-debug
run: |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Debug
cmake --build ${{github.workspace}}/build --config Debug --target install -- /m:10
10 changes: 5 additions & 5 deletions source/LibMultiSense/details/public.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1345,15 +1345,15 @@ Status impl::getMtu(int32_t& mtu)

Status impl::setBestMtu()
{
uint cur_mtu = MAX_MTU_SIZE;
uint max_mtu = MAX_MTU_SIZE;
uint min_mtu = MIN_MTU_SIZE;
uint bisections = 0;
uint32_t cur_mtu = MAX_MTU_SIZE;
uint32_t max_mtu = MAX_MTU_SIZE;
uint32_t min_mtu = MIN_MTU_SIZE;
uint32_t bisections = 0;
Status status = Status_Ok;

//
// v2.2 and older do not support testing MTU

if (m_sensorVersion.firmwareVersion <= 0x0202)
return Status_Unsupported;

Expand Down

0 comments on commit 87aa331

Please sign in to comment.