Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Malvarado/windows ci #170

Merged
merged 4 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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