Skip to content

Update setstateestimation, setstateestimationwgs commands to be able … #150

Update setstateestimation, setstateestimationwgs commands to be able …

Update setstateestimation, setstateestimationwgs commands to be able … #150

on:
push:
branches: ['**']
tags-ignore: ['**'] # Ignore all tag pushes
pull_request:
jobs:
# This job may be commented if a new release should not be created...
deploy:
runs-on: ubuntu-latest
steps:
- uses: softprops/action-gh-release@v3
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true
tag_name: autotagname-${{ github.sha }}
if: github.event_name != 'pull_request'
# Default configurations
j1:
name: Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
- run: cmake . && cmake --build . --config Release --target UxVCtrl && @echo wait 10 > run_test.txt && @echo exit >> run_test.txt && Release\UxVCtrl.exe < run_test.txt
shell: cmd
j2:
name: Windows MinGW x64
runs-on: windows-2022
steps:
- uses: actions/checkout@v6
# - run: choco upgrade -y -r --no-progress make
- run: cmake -G "MinGW Makefiles" -D CMAKE_BUILD_TYPE=Release . && cmake --build . && echo wait 10 > run_test.txt && echo exit >> run_test.txt && cat run_test.txt | ./UxVCtrl
shell: bash
j3:
name: Ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: cmake -D CMAKE_BUILD_TYPE=Release . && cmake --build . && echo wait 10 > run_test.txt && echo exit >> run_test.txt && cat run_test.txt | ./UxVCtrl
j4:
name: macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- run: cmake -D CMAKE_BUILD_TYPE=Release . && cmake --build . && echo wait 10 > run_test.txt && echo exit >> run_test.txt && cat run_test.txt | ./UxVCtrl
# Main compatibility configurations
j5:
name: Windows Visual Studio 2022 x86 static with OpenCV 4.6.0 without SBG SDK, RPLIDAR SDK, BlueView, Kinect v2 support
runs-on: windows-2022
steps:
- uses: actions/checkout@v6
- run: |
choco upgrade -y -r --no-progress wget
rem Test alternate CMake version...
rem choco uninstall -y cmake.install
rem choco upgrade -y -r --no-progress cmake.install --version=3.16.0
rem wget http://www.ensta-bretagne.fr/lebars/Share/cmake_extra_tools.zip --no-check-certificate -nv
rem 7z x cmake_extra_tools.zip -o"%SystemDrive%" -y
rem %SystemDrive%\cmake_extra_tools\pathman /as C:\Progra~2\CMake\bin & cd. & rem Non-zero exit code...?
rem For OpenCV
powershell -Command "Install-WindowsFeature Server-Media-Foundation"
rem powerShell -Command "Add-WindowsCapability -Online -Name Tools.Graphics.DirectX*"
rem powerShell -Command "Add-WindowsCapability -Online -Name Media.WindowsMediaPlayer*"
rem powerShell -Command "Add-WindowsCapability -Online -Name Browser.InternetExplorer*"
rem powerShell -Command "Add-WindowsCapability -Online -Name ServerCore.AppCompatibility*"
wget http://www.ensta-bretagne.fr/lebars/Share/windows_server_core_prereq.zip --no-check-certificate -nv
7z x windows_server_core_prereq.zip -o"%SystemRoot%" -y & cd. & rem ksuser.dll already on windows-2016...?
rem For LabJack
wget http://www.ensta-bretagne.fr/lebars/Share/LabJack-2019-05-20.zip --no-check-certificate -nv
7z x LabJack-2019-05-20.zip -o"%SystemDrive%" -y
regedit /s %SystemDrive%\Certificates.reg
cmd /c "start %SystemDrive%\LabJack-2019-05-20.exe /S"
wget http://www.ensta-bretagne.fr/lebars/Share/cmake_extra_tools.zip --no-check-certificate -nv
7z x cmake_extra_tools.zip -o"%SystemDrive%" -y
%SystemDrive%\cmake_extra_tools\sleep 60
TASKKILL /F /IM LVRunTimeEng.exe /T & cd. & rem Non-zero exit code...
rem For XP support
rem wget "https://aka.ms/vs/15/release/vs_buildtools.exe" --no-check-certificate -nv -O vs_buildtools.exe
rem vs_buildtools.exe modify --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise" --passive --norestart --wait --includeRecommended --add Microsoft.VisualStudio.ComponentGroup.NativeDesktop.WinXP --add Microsoft.VisualStudio.Component.WinXP
rem Lighter version of OpenCV, instead of the one that would be downloaded automatically by CMakeLists.txt...
choco upgrade -y -r --no-progress --ignore-dependencies libopencv-dev --version=4.6.0.20240808 --params "'/url:https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.6.0.20240807/libopencv-dev.4.6.0_x86_vc17_staticlib_Release.exe'"
shell: cmd
- run: refreshenv.cmd && cmake -G "Visual Studio 17" -A Win32 -D ENABLE_STATIC=ON -D DISABLE_OPENCV_SUPPORT=OFF -D OPENCV2413=OFF -D OPENCV320=OFF -D OPENCV420=OFF -D OPENCV454=OFF -D OPENCV460=ON -D ENABLE_MAVLINK_SUPPORT=ON -D ENABLE_LABJACK_SUPPORT=ON -D ENABLE_LIBMODBUS_SUPPORT=ON -D ENABLE_SBG_SDK_SUPPORT=OFF -D ENABLE_RPLIDAR_SDK_SUPPORT=OFF . && cmake --build . --config Release --target UxVCtrl && refreshenv.cmd && @echo wait 10 > run_test.txt && @echo exit >> run_test.txt && Release\UxVCtrl.exe < run_test.txt && set && copy Release\UxVCtrl.exe UxVCtrl_compat.exe
shell: cmd
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "UxVCtrl_compat.exe"
overwrite: true
tag_name: autotagname-${{ github.sha }}
if: github.event_name != 'pull_request'
j6:
name: Ubuntu 24.04 amd64 static without OpenCV, libmodbus, SBG SDK, RPLIDAR SDK, BlueView, Kinect v2 support
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- run: sudo apt-get -q update || true
- run: cmake -D CMAKE_BUILD_TYPE=Release -D ENABLE_STATIC=ON -D ENABLE_MAVLINK_SUPPORT=ON -D ENABLE_LABJACK_SUPPORT=ON -D ENABLE_SBG_SDK_SUPPORT=OFF -D ENABLE_RPLIDAR_SDK_SUPPORT=OFF . && cmake --build . && echo wait 10 > run_test.txt && echo exit >> run_test.txt && cat run_test.txt | ./UxVCtrl && cp ./UxVCtrl ./UxVCtrl_compat_ubuntu_noble
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "UxVCtrl_compat_ubuntu_noble"
overwrite: true
tag_name: autotagname-${{ github.sha }}
if: github.event_name != 'pull_request'
j7:
name: Ubuntu 22.04 amd64 static without OpenCV, libmodbus, SBG SDK, RPLIDAR SDK, BlueView, Kinect v2 support
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- run: sudo apt-get -q update || true
- run: cmake -D CMAKE_BUILD_TYPE=Release -D ENABLE_STATIC=ON -D ENABLE_MAVLINK_SUPPORT=ON -D ENABLE_LABJACK_SUPPORT=ON -D ENABLE_SBG_SDK_SUPPORT=OFF -D ENABLE_RPLIDAR_SDK_SUPPORT=OFF . && cmake --build . && echo wait 10 > run_test.txt && echo exit >> run_test.txt && cat run_test.txt | ./UxVCtrl && cp ./UxVCtrl ./UxVCtrl_compat_ubuntu_jammy
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "UxVCtrl_compat_ubuntu_jammy"
overwrite: true
tag_name: autotagname-${{ github.sha }}
if: github.event_name != 'pull_request'
j8:
name: Ubuntu 24.04 arm64 static without OpenCV, libmodbus, SBG SDK, RPLIDAR SDK, BlueView, Kinect v2 support
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
- run: sudo apt-get -q update || true
- run: cmake -D CMAKE_BUILD_TYPE=Release -D ENABLE_STATIC=ON -D ENABLE_MAVLINK_SUPPORT=ON -D ENABLE_LABJACK_SUPPORT=ON -D ENABLE_SBG_SDK_SUPPORT=OFF -D ENABLE_RPLIDAR_SDK_SUPPORT=OFF . && cmake --build . && echo wait 10 > run_test.txt && echo exit >> run_test.txt && cat run_test.txt | ./UxVCtrl && cp ./UxVCtrl ./UxVCtrl_compat_ubuntu_noble_arm64
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "UxVCtrl_compat_ubuntu_noble_arm64"
overwrite: true
tag_name: autotagname-${{ github.sha }}
if: github.event_name != 'pull_request'
j9:
name: Ubuntu 22.04 arm64 static without OpenCV, libmodbus, SBG SDK, RPLIDAR SDK, BlueView, Kinect v2 support
runs-on: ubuntu-22.04-arm
steps:
- uses: actions/checkout@v6
- run: sudo apt-get -q update || true
- run: cmake -D CMAKE_BUILD_TYPE=Release -D ENABLE_STATIC=ON -D ENABLE_MAVLINK_SUPPORT=ON -D ENABLE_LABJACK_SUPPORT=ON -D ENABLE_SBG_SDK_SUPPORT=OFF -D ENABLE_RPLIDAR_SDK_SUPPORT=OFF . && cmake --build . && echo wait 10 > run_test.txt && echo exit >> run_test.txt && cat run_test.txt | ./UxVCtrl && cp ./UxVCtrl ./UxVCtrl_compat_ubuntu_jammy_arm64
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "UxVCtrl_compat_ubuntu_jammy_arm64"
overwrite: true
tag_name: autotagname-${{ github.sha }}
if: github.event_name != 'pull_request'
j10:
name: Raspbian Bookworm pi Docker static without OpenCV, libmodbus, SBG SDK, RPLIDAR SDK, BlueView, Kinect v2 support
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
#- run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
- run: docker run -i -v "${PWD}/..:${PWD}/.." lebarsfa/pi:bookworm /bin/bash -c "uname -a && cat /etc/os-release && cd ${PWD} && lsb_release -a && cmake -D CMAKE_BUILD_TYPE=Release -D ENABLE_STATIC=ON -D ENABLE_MAVLINK_SUPPORT=ON -D ENABLE_LABJACK_SUPPORT=ON -D ENABLE_SBG_SDK_SUPPORT=OFF -D ENABLE_RPLIDAR_SDK_SUPPORT=OFF . && cmake --build . && echo wait 10 > run_test.txt && echo exit >> run_test.txt && cat run_test.txt | ./UxVCtrl && cp ./UxVCtrl ./UxVCtrl_compat_bookworm_pi"
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "UxVCtrl_compat_bookworm_pi"
overwrite: true
tag_name: autotagname-${{ github.sha }}
if: github.event_name != 'pull_request'
j11:
name: macOS Sonoma x86_64 static without OpenCV, libmodbus, SBG SDK, RPLIDAR SDK, BlueView, Kinect v2 support # Not clear whether macos-15-intel is more Sequoia or Sonoma, see https://github.com/actions/runner-images/issues/13045...
runs-on: macos-15-intel
steps:
- uses: actions/checkout@v6
- run: cmake -D CMAKE_BUILD_TYPE=Release -D ENABLE_STATIC=ON -D ENABLE_MAVLINK_SUPPORT=ON -D ENABLE_LABJACK_SUPPORT=ON -D ENABLE_SBG_SDK_SUPPORT=OFF -D ENABLE_RPLIDAR_SDK_SUPPORT=OFF . && cmake --build . && echo wait 10 > run_test.txt && echo exit >> run_test.txt && cat run_test.txt | ./UxVCtrl && cp ./UxVCtrl ./UxVCtrl_compat_macos_sonoma_x86_64
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "UxVCtrl_compat_macos_sonoma_x86_64"
overwrite: true
tag_name: autotagname-${{ github.sha }}
if: github.event_name != 'pull_request'
# Main full configurations
j12:
name: Windows Visual Studio 2022 x64 static with OpenCV 4.6.0 without BlueView support
runs-on: windows-2022
steps:
- uses: actions/checkout@v6
- run: |
choco upgrade -y -r --no-progress wget
rem For OpenCV
powershell -Command "Install-WindowsFeature Server-Media-Foundation"
wget http://www.ensta-bretagne.fr/lebars/Share/windows_server_core_prereq.zip --no-check-certificate -nv
7z x windows_server_core_prereq.zip -o"%SystemRoot%" -y & cd. & rem ksuser.dll already on windows-2016...?
rem For LabJack
wget http://www.ensta-bretagne.fr/lebars/Share/LabJack-2019-05-20.zip --no-check-certificate -nv
7z x LabJack-2019-05-20.zip -o"%SystemDrive%" -y
regedit /s %SystemDrive%\Certificates.reg
cmd /c "start %SystemDrive%\LabJack-2019-05-20.exe /S"
wget http://www.ensta-bretagne.fr/lebars/Share/cmake_extra_tools.zip --no-check-certificate -nv
7z x cmake_extra_tools.zip -o"%SystemDrive%" -y
%SystemDrive%\cmake_extra_tools\sleep 60
TASKKILL /F /IM LVRunTimeEng.exe /T & cd. & rem Non-zero exit code...
rem Lighter version of OpenCV, instead of the one that would be downloaded automatically by CMakeLists.txt...
choco upgrade -y -r --no-progress --ignore-dependencies libopencv-dev --version=4.6.0.20240808 --params "'/url:https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.6.0.20240807/libopencv-dev.4.6.0_x64_vc17_staticlib_Release.exe'"
shell: cmd
- run: refreshenv.cmd && cmake -G "Visual Studio 17" -A x64 -D ENABLE_STATIC=ON -D DISABLE_OPENCV_SUPPORT=OFF -D OPENCV2413=OFF -D OPENCV320=OFF -D OPENCV420=OFF -D OPENCV454=OFF -D OPENCV460=ON -D ENABLE_MAVLINK_SUPPORT=ON -D ENABLE_LABJACK_SUPPORT=ON -D ENABLE_LIBMODBUS_SUPPORT=ON -D ENABLE_SBG_SDK_SUPPORT=ON -D ENABLE_RPLIDAR_SDK_SUPPORT=ON -D ENABLE_CVKINECT2SDKHOOK=ON . && cmake --build . --config Release --target UxVCtrl && refreshenv.cmd && @echo wait 10 > run_test.txt && @echo exit >> run_test.txt && Release\UxVCtrl.exe < run_test.txt && copy Release\UxVCtrl.exe UxVCtrl_x64.exe
shell: cmd
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "UxVCtrl_x64.exe"
overwrite: true
tag_name: autotagname-${{ github.sha }}
if: github.event_name != 'pull_request'
j13:
name: Windows Visual Studio 2022 x86 static with OpenCV 4.6.0
runs-on: windows-2022
steps:
- uses: actions/checkout@v6
- run: |
choco upgrade -y -r --no-progress wget
rem For OpenCV
powershell -Command "Install-WindowsFeature Server-Media-Foundation"
wget http://www.ensta-bretagne.fr/lebars/Share/windows_server_core_prereq.zip --no-check-certificate -nv
7z x windows_server_core_prereq.zip -o"%SystemRoot%" -y & cd. & rem ksuser.dll already on windows-2016...?
rem For LabJack
wget http://www.ensta-bretagne.fr/lebars/Share/LabJack-2019-05-20.zip --no-check-certificate -nv
7z x LabJack-2019-05-20.zip -o"%SystemDrive%" -y
regedit /s %SystemDrive%\Certificates.reg
cmd /c "start %SystemDrive%\LabJack-2019-05-20.exe /S"
wget http://www.ensta-bretagne.fr/lebars/Share/cmake_extra_tools.zip --no-check-certificate -nv
7z x cmake_extra_tools.zip -o"%SystemDrive%" -y
%SystemDrive%\cmake_extra_tools\sleep 60
TASKKILL /F /IM LVRunTimeEng.exe /T & cd. & rem Non-zero exit code...
rem Lighter version of OpenCV, instead of the one that would be downloaded automatically by CMakeLists.txt...
choco upgrade -y -r --no-progress --ignore-dependencies libopencv-dev --version=4.6.0.20240808 --params "'/url:https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.6.0.20240807/libopencv-dev.4.6.0_x86_vc17_staticlib_Release.exe'"
shell: cmd
- run: refreshenv.cmd && cmake -G "Visual Studio 17" -A Win32 -D ENABLE_STATIC=ON -D DISABLE_OPENCV_SUPPORT=OFF -D OPENCV2413=OFF -D OPENCV320=OFF -D OPENCV420=OFF -D OPENCV454=OFF -D OPENCV460=ON -D ENABLE_MAVLINK_SUPPORT=ON -D ENABLE_LABJACK_SUPPORT=ON -D ENABLE_LIBMODBUS_SUPPORT=ON -D ENABLE_SBG_SDK_SUPPORT=ON -D ENABLE_RPLIDAR_SDK_SUPPORT=ON -D ENABLE_BLUEVIEW_SUPPORT=ON -D ENABLE_CVKINECT2SDKHOOK=ON . && cmake --build . --config Release --target UxVCtrl && refreshenv.cmd && @echo wait 10 > run_test.txt && @echo exit >> run_test.txt && Release\UxVCtrl.exe < run_test.txt && copy Release\UxVCtrl.exe UxVCtrl.exe
shell: cmd
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "UxVCtrl.exe"
overwrite: true
tag_name: autotagname-${{ github.sha }}
if: github.event_name != 'pull_request'
j14:
name: Windows MinGW 13.2.0 x64 with OpenCV 4.6.0 without SBG SDK, RPLIDAR SDK, BlueView support
runs-on: windows-2022
steps:
- uses: actions/checkout@v6
- run: |
choco upgrade -y -r --no-progress wget
choco upgrade -y -r --no-progress mingw --version=13.2.0 --force
rem For OpenCV
powershell -Command "Install-WindowsFeature Server-Media-Foundation"
wget http://www.ensta-bretagne.fr/lebars/Share/windows_server_core_prereq.zip --no-check-certificate -nv
7z x windows_server_core_prereq.zip -o"%SystemRoot%" -y & cd. & rem ksuser.dll already on windows-2016...?
rem For LabJack
wget http://www.ensta-bretagne.fr/lebars/Share/LabJack-2019-05-20.zip --no-check-certificate -nv
7z x LabJack-2019-05-20.zip -o"%SystemDrive%" -y
regedit /s %SystemDrive%\Certificates.reg
cmd /c "start %SystemDrive%\LabJack-2019-05-20.exe /S"
wget http://www.ensta-bretagne.fr/lebars/Share/cmake_extra_tools.zip --no-check-certificate -nv
7z x cmake_extra_tools.zip -o"%SystemDrive%" -y
%SystemDrive%\cmake_extra_tools\sleep 60
TASKKILL /F /IM LVRunTimeEng.exe /T & cd. & rem Non-zero exit code...
rem Lighter version of OpenCV, instead of the one that would be downloaded automatically by CMakeLists.txt...
choco upgrade -y -r --no-progress --ignore-dependencies libopencv-dev --version=4.6.0.20240808
rem PATH
rem mingw v13.2.0 Chocolatey package might not set this...
%SystemDrive%\cmake_extra_tools\pathman /as C:\ProgramData\mingw64\mingw64\bin & cd. & rem Non-zero exit code...?
shell: cmd
- run: refreshenv.cmd && set PATH=C:\ProgramData\mingw64\mingw64\bin;%PATH% && cmake -G "MinGW Makefiles" -D CMAKE_BUILD_TYPE=Release -D DISABLE_OPENCV_SUPPORT=OFF -D OPENCV2413=OFF -D OPENCV320=OFF -D OPENCV420=OFF -D OPENCV454=OFF -D OPENCV460=ON -D ENABLE_MAVLINK_SUPPORT=ON -D ENABLE_LABJACK_SUPPORT=ON -D ENABLE_LIBMODBUS_SUPPORT=ON -D ENABLE_CVKINECT2SDKHOOK=ON -D ENABLE_MINGW64_STDCALL_FIX=ON . && cmake --build . && refreshenv.cmd && set PATH=C:\ProgramData\mingw64\mingw64\bin;%PATH% && @echo wait 10 > run_test.txt && @echo exit >> run_test.txt && UxVCtrl.exe < run_test.txt & set & copy UxVCtrl.exe UxVCtrl_mingw13_x64.exe
shell: cmd
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "UxVCtrl_mingw13_x64.exe"
overwrite: true
tag_name: autotagname-${{ github.sha }}
if: github.event_name != 'pull_request'
j15:
name: Windows MinGW 13.2.0 x86 with OpenCV 4.6.0 without SBG SDK, RPLIDAR SDK support
runs-on: windows-2022
steps:
- uses: actions/checkout@v6
- run: |
choco upgrade -y -r --no-progress wget
choco upgrade -y -r --no-progress mingw --version=13.2.0 --force --x86
choco upgrade -y -r --no-progress make --force --x86
rem For OpenCV
powershell -Command "Install-WindowsFeature Server-Media-Foundation"
wget http://www.ensta-bretagne.fr/lebars/Share/windows_server_core_prereq.zip --no-check-certificate -nv
7z x windows_server_core_prereq.zip -o"%SystemRoot%" -y & cd. & rem ksuser.dll already on windows-2016...?
rem For LabJack
wget http://www.ensta-bretagne.fr/lebars/Share/LabJack-2019-05-20.zip --no-check-certificate -nv
7z x LabJack-2019-05-20.zip -o"%SystemDrive%" -y
regedit /s %SystemDrive%\Certificates.reg
cmd /c "start %SystemDrive%\LabJack-2019-05-20.exe /S"
wget http://www.ensta-bretagne.fr/lebars/Share/cmake_extra_tools.zip --no-check-certificate -nv
7z x cmake_extra_tools.zip -o"%SystemDrive%" -y
%SystemDrive%\cmake_extra_tools\sleep 60
TASKKILL /F /IM LVRunTimeEng.exe /T & cd. & rem Non-zero exit code...
rem Lighter version of OpenCV, instead of the one that would be downloaded automatically by CMakeLists.txt...
choco upgrade -y -r --no-progress --ignore-dependencies libopencv-dev --version=4.6.0.20240808 --x86
rem mingw v13.2.0 Chocolatey package correctly sets this...
rem %SystemDrive%\cmake_extra_tools\pathman /as C:\ProgramData\mingw64\mingw32\bin & cd. & rem Non-zero exit code...?
shell: cmd
- run: refreshenv.cmd && set PATH=C:\ProgramData\mingw64\mingw32\bin;%PATH% && cmake -G "MinGW Makefiles" -D CMAKE_BUILD_TYPE=Release -D DISABLE_OPENCV_SUPPORT=OFF -D OPENCV2413=OFF -D OPENCV320=OFF -D OPENCV420=OFF -D OPENCV454=OFF -D OPENCV460=ON -D ENABLE_MAVLINK_SUPPORT=ON -D ENABLE_LABJACK_SUPPORT=ON -D ENABLE_LIBMODBUS_SUPPORT=ON -D ENABLE_BLUEVIEW_SUPPORT=ON -D ENABLE_CVKINECT2SDKHOOK=ON -D ENABLE_MINGW64_STDCALL_FIX=ON . && cmake --build . && refreshenv.cmd && set PATH=C:\ProgramData\mingw64\mingw32\bin;%PATH% && @echo wait 10 > run_test.txt && @echo exit >> run_test.txt && UxVCtrl.exe < run_test.txt & set & copy UxVCtrl.exe UxVCtrl_mingw13_x86.exe
shell: cmd
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "UxVCtrl_mingw13_x86.exe"
overwrite: true
tag_name: autotagname-${{ github.sha }}
if: github.event_name != 'pull_request'
j16:
name: Ubuntu 24.04 amd64 with default OpenCV 4.6.0
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- run: sudo apt-get -q update || true
- run: cmake -D CMAKE_BUILD_TYPE=Release -D DISABLE_OPENCV_SUPPORT=OFF -D ENABLE_MAVLINK_SUPPORT=ON -D ENABLE_LABJACK_SUPPORT=ON -D ENABLE_LIBMODBUS_SUPPORT=ON -D ENABLE_SBG_SDK_SUPPORT=ON -D ENABLE_RPLIDAR_SDK_SUPPORT=ON -D ENABLE_BLUEVIEW_SUPPORT=ON -D ENABLE_CVKINECT2SDKHOOK=ON . && cmake --build . && echo wait 10 > run_test.txt && echo exit >> run_test.txt && cat run_test.txt | xvfb-run -a ./UxVCtrl && cp ./UxVCtrl ./UxVCtrl_ubuntu_noble
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "UxVCtrl_ubuntu_noble"
overwrite: true
tag_name: autotagname-${{ github.sha }}
if: github.event_name != 'pull_request'
j17:
name: Ubuntu 22.04 amd64 with default OpenCV 4.5.4
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- run: sudo apt-get -q update || true
- run: cmake -D CMAKE_BUILD_TYPE=Release -D DISABLE_OPENCV_SUPPORT=OFF -D ENABLE_MAVLINK_SUPPORT=ON -D ENABLE_LABJACK_SUPPORT=ON -D ENABLE_LIBMODBUS_SUPPORT=ON -D ENABLE_SBG_SDK_SUPPORT=ON -D ENABLE_RPLIDAR_SDK_SUPPORT=ON -D ENABLE_BLUEVIEW_SUPPORT=ON -D ENABLE_CVKINECT2SDKHOOK=ON . && cmake --build . && echo wait 10 > run_test.txt && echo exit >> run_test.txt && cat run_test.txt | xvfb-run -a ./UxVCtrl && cp ./UxVCtrl ./UxVCtrl_ubuntu_jammy
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "UxVCtrl_ubuntu_jammy"
overwrite: true
tag_name: autotagname-${{ github.sha }}
if: github.event_name != 'pull_request'
j18:
name: Ubuntu 24.04 arm64 with default OpenCV 4.6.0 without SBG SDK, RPLIDAR SDK, BlueView, Kinect v2 support
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
- run: sudo apt-get -q update || true
- run: cmake -D CMAKE_BUILD_TYPE=Release -D DISABLE_OPENCV_SUPPORT=OFF -D ENABLE_MAVLINK_SUPPORT=ON -D ENABLE_LABJACK_SUPPORT=ON -D ENABLE_LIBMODBUS_SUPPORT=ON -D ENABLE_SBG_SDK_SUPPORT=OFF -D ENABLE_RPLIDAR_SDK_SUPPORT=OFF . && cmake --build . && echo wait 10 > run_test.txt && echo exit >> run_test.txt && cat run_test.txt | xvfb-run -a ./UxVCtrl && cp ./UxVCtrl ./UxVCtrl_ubuntu_noble_arm64
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "UxVCtrl_ubuntu_noble_arm64"
overwrite: true
tag_name: autotagname-${{ github.sha }}
if: github.event_name != 'pull_request'
j19:
name: Ubuntu 22.04 arm64 with default OpenCV 4.5.4 without SBG SDK, RPLIDAR SDK, BlueView, Kinect v2 support
runs-on: ubuntu-22.04-arm
steps:
- uses: actions/checkout@v6
- run: sudo apt-get -q update || true
- run: cmake -D CMAKE_BUILD_TYPE=Release -D DISABLE_OPENCV_SUPPORT=OFF -D ENABLE_MAVLINK_SUPPORT=ON -D ENABLE_LABJACK_SUPPORT=ON -D ENABLE_LIBMODBUS_SUPPORT=ON -D ENABLE_SBG_SDK_SUPPORT=OFF -D ENABLE_RPLIDAR_SDK_SUPPORT=OFF . && cmake --build . && echo wait 10 > run_test.txt && echo exit >> run_test.txt && cat run_test.txt | xvfb-run -a ./UxVCtrl && cp ./UxVCtrl ./UxVCtrl_ubuntu_jammy_arm64
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "UxVCtrl_ubuntu_jammy_arm64"
overwrite: true
tag_name: autotagname-${{ github.sha }}
if: github.event_name != 'pull_request'
j20:
name: Raspbian Bookworm pi Docker with default OpenCV 4.6.0 without SBG SDK, RPLIDAR SDK, BlueView, Kinect v2 support
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
#- run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
- run: docker run -i -v "${PWD}/..:${PWD}/.." lebarsfa/pi:bookworm /bin/bash -c "uname -a && cat /etc/os-release && cd ${PWD} && apt-get -q update --allow-releaseinfo-change ; export DEBIAN_FRONTEND=noninteractive && export UCF_FORCE_CONFFOLD=1 && apt-get -y install xvfb xauth && lsb_release -a && cmake -D CMAKE_BUILD_TYPE=Release -D DISABLE_OPENCV_SUPPORT=OFF -D ENABLE_MAVLINK_SUPPORT=ON -D ENABLE_LABJACK_SUPPORT=ON -D ENABLE_LIBMODBUS_SUPPORT=ON -D ENABLE_SBG_SDK_SUPPORT=OFF -D ENABLE_RPLIDAR_SDK_SUPPORT=OFF . && cmake --build . && { Xvfb :99 & echo X_starting && sleep 3 ; } && export DISPLAY=:99 && echo wait 10 > run_test.txt && echo exit >> run_test.txt && cat run_test.txt | ./UxVCtrl && cp ./UxVCtrl ./UxVCtrl_bookworm_pi"
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "UxVCtrl_bookworm_pi"
overwrite: true
tag_name: autotagname-${{ github.sha }}
if: github.event_name != 'pull_request'
j21:
name: macOS Sonoma x86_64 with latest OpenCV without BlueView, Kinect v2 support
runs-on: macos-15-intel
steps:
- uses: actions/checkout@v6
- run: cmake -D CMAKE_BUILD_TYPE=Release -D DISABLE_OPENCV_SUPPORT=OFF -D ENABLE_MAVLINK_SUPPORT=ON -D ENABLE_LABJACK_SUPPORT=ON -D ENABLE_LIBMODBUS_SUPPORT=ON -D ENABLE_SBG_SDK_SUPPORT=ON -D ENABLE_RPLIDAR_SDK_SUPPORT=ON . && cmake --build . && echo wait 10 > run_test.txt && echo exit >> run_test.txt && cat run_test.txt | ./UxVCtrl && cp ./UxVCtrl ./UxVCtrl_macos_sonoma_x86_64
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "UxVCtrl_macos_sonoma_x86_64"
overwrite: true
tag_name: autotagname-${{ github.sha }}
if: github.event_name != 'pull_request'
# Other compatibility configurations
# Other full configurations
# Alternate configurations
j27:
name: Windows Visual Studio 2022 x86 static with OpenCV 4.6.0 without SBG SDK, RPLIDAR SDK support
runs-on: windows-2022
steps:
- uses: actions/checkout@v6
- run: |
choco upgrade -y -r --no-progress wget
rem For OpenCV
powershell -Command "Install-WindowsFeature Server-Media-Foundation"
wget http://www.ensta-bretagne.fr/lebars/Share/windows_server_core_prereq.zip --no-check-certificate -nv
7z x windows_server_core_prereq.zip -o"%SystemRoot%" -y & cd. & rem ksuser.dll already on windows-2016...?
rem For LabJack
wget http://www.ensta-bretagne.fr/lebars/Share/LabJack-2019-05-20.zip --no-check-certificate -nv
7z x LabJack-2019-05-20.zip -o"%SystemDrive%" -y
regedit /s %SystemDrive%\Certificates.reg
cmd /c "start %SystemDrive%\LabJack-2019-05-20.exe /S"
wget http://www.ensta-bretagne.fr/lebars/Share/cmake_extra_tools.zip --no-check-certificate -nv
7z x cmake_extra_tools.zip -o"%SystemDrive%" -y
%SystemDrive%\cmake_extra_tools\sleep 60
TASKKILL /F /IM LVRunTimeEng.exe /T & cd. & rem Non-zero exit code...
rem Lighter version of OpenCV, instead of the one that would be downloaded automatically by CMakeLists.txt...
choco upgrade -y -r --no-progress --ignore-dependencies libopencv-dev --version=4.6.0.20240808 --params "'/url:https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.6.0.20240807/libopencv-dev.4.6.0_x86_vc17_staticlib_Release.exe'"
shell: cmd
- run: refreshenv.cmd && cmake -G "Visual Studio 17" -A Win32 -D ENABLE_STATIC=ON -D DISABLE_OPENCV_SUPPORT=OFF -D OPENCV2413=OFF -D OPENCV320=OFF -D OPENCV420=OFF -D OPENCV454=OFF -D OPENCV460=ON -D ENABLE_MAVLINK_SUPPORT=ON -D ENABLE_LABJACK_SUPPORT=ON -D ENABLE_LIBMODBUS_SUPPORT=ON -D ENABLE_SBG_SDK_SUPPORT=OFF -D ENABLE_RPLIDAR_SDK_SUPPORT=OFF -D ENABLE_BLUEVIEW_SUPPORT=ON -D ENABLE_CVKINECT2SDKHOOK=ON . && cmake --build . --config Release --target UxVCtrl && refreshenv.cmd && @echo wait 10 > run_test.txt && @echo exit >> run_test.txt && Release\UxVCtrl.exe < run_test.txt && copy Release\UxVCtrl.exe UxVCtrl_alt.exe
shell: cmd
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "UxVCtrl_alt.exe"
overwrite: true
tag_name: autotagname-${{ github.sha }}
if: github.event_name != 'pull_request'
j28:
name: Windows Visual Studio 2017 x86 static with OpenCV 3.2.0 and FFmpeg (Kinect v2 currently incompatible) without SBG SDK, RPLIDAR SDK, Kinect v2 support
runs-on: windows-2022
steps:
- uses: actions/checkout@v6
- run: |
choco upgrade -y -r --no-progress wget
"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" modify --installPath "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" --add Microsoft.VisualStudio.Component.VC.v141.x86.x64 --force --quiet --norestart --addProductLang en-US --includeRecommended
rem For OpenCV
powershell -Command "Install-WindowsFeature Server-Media-Foundation"
wget http://www.ensta-bretagne.fr/lebars/Share/windows_server_core_prereq.zip --no-check-certificate -nv
7z x windows_server_core_prereq.zip -o"%SystemRoot%" -y & cd. & rem ksuser.dll already on windows-2016...?
rem For LabJack
wget http://www.ensta-bretagne.fr/lebars/Share/LabJack-2019-05-20.zip --no-check-certificate -nv
7z x LabJack-2019-05-20.zip -o"%SystemDrive%" -y
regedit /s %SystemDrive%\Certificates.reg
cmd /c "start %SystemDrive%\LabJack-2019-05-20.exe /S"
wget http://www.ensta-bretagne.fr/lebars/Share/cmake_extra_tools.zip --no-check-certificate -nv
7z x cmake_extra_tools.zip -o"%SystemDrive%" -y
%SystemDrive%\cmake_extra_tools\sleep 60
TASKKILL /F /IM LVRunTimeEng.exe /T & cd. & rem Non-zero exit code...
rem Lighter version of OpenCV, instead of the one that would be downloaded automatically by CMakeLists.txt...
wget http://www.ensta-bretagne.fr/lebars/Share/OpenCV3.2.0_mini.zip --no-check-certificate -nv
7z x OpenCV3.2.0_mini.zip -o"%SystemDrive%" -y
rem PATH
%SystemDrive%\cmake_extra_tools\pathman /as C:\OpenCV3.2.0\x86\vc15\bin & cd. & rem Non-zero exit code...?
shell: cmd
- run: refreshenv.cmd && cmake -G "Visual Studio 17" -T v141 -A Win32,version=10.0.19041.0 -D CMAKE_SYSTEM_VERSION=10.0.17763.0 -D ENABLE_STATIC=ON -D DISABLE_OPENCV_SUPPORT=OFF -D OPENCV2413=OFF -D OPENCV320=ON -D OPENCV420=OFF -D OPENCV454=OFF -D OPENCV460=OFF -D ENABLE_MAVLINK_SUPPORT=ON -D ENABLE_LABJACK_SUPPORT=ON -D ENABLE_LIBMODBUS_SUPPORT=ON -D ENABLE_SBG_SDK_SUPPORT=OFF -D ENABLE_RPLIDAR_SDK_SUPPORT=OFF -D ENABLE_BLUEVIEW_SUPPORT=ON -D ENABLE_CVKINECT2SDKHOOK=OFF -D USE_FFMPEG_VIDEO=ON . && cmake --build . --config Release --target UxVCtrl && refreshenv.cmd && @echo wait 10 > run_test.txt && @echo exit >> run_test.txt && Release\UxVCtrl.exe < run_test.txt && copy Release\UxVCtrl.exe UxVCtrl_cv320_ffmpeg.exe
shell: cmd
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "UxVCtrl_cv320_ffmpeg.exe"
overwrite: true
tag_name: autotagname-${{ github.sha }}
if: github.event_name != 'pull_request'
j29:
name: Windows Visual Studio 2019 x86 static with OpenCV 2.4.13 without SBG SDK, RPLIDAR SDK support
runs-on: windows-2022
steps:
- uses: actions/checkout@v6
- run: |
choco upgrade -y -r --no-progress wget
rem For OpenCV
powershell -Command "Install-WindowsFeature Server-Media-Foundation"
wget http://www.ensta-bretagne.fr/lebars/Share/windows_server_core_prereq.zip --no-check-certificate -nv
7z x windows_server_core_prereq.zip -o"%SystemRoot%" -y & cd. & rem ksuser.dll already on windows-2016...?
rem For LabJack
wget http://www.ensta-bretagne.fr/lebars/Share/LabJack-2019-05-20.zip --no-check-certificate -nv
7z x LabJack-2019-05-20.zip -o"%SystemDrive%" -y
regedit /s %SystemDrive%\Certificates.reg
cmd /c "start %SystemDrive%\LabJack-2019-05-20.exe /S"
wget http://www.ensta-bretagne.fr/lebars/Share/cmake_extra_tools.zip --no-check-certificate -nv
7z x cmake_extra_tools.zip -o"%SystemDrive%" -y
%SystemDrive%\cmake_extra_tools\sleep 60
TASKKILL /F /IM LVRunTimeEng.exe /T & cd. & rem Non-zero exit code...
shell: cmd
- run: refreshenv.cmd && cmake -G "Visual Studio 17" -T v142 -A Win32 -D ENABLE_STATIC=ON -D DISABLE_OPENCV_SUPPORT=OFF -D OPENCV2413=ON -D OPENCV320=OFF -D OPENCV420=OFF -D OPENCV454=OFF -D OPENCV460=OFF -D ENABLE_MAVLINK_SUPPORT=ON -D ENABLE_LABJACK_SUPPORT=ON -D ENABLE_LIBMODBUS_SUPPORT=ON -D ENABLE_SBG_SDK_SUPPORT=OFF -D ENABLE_RPLIDAR_SDK_SUPPORT=OFF -D ENABLE_BLUEVIEW_SUPPORT=ON -D ENABLE_CVKINECT2SDKHOOK=ON . && cmake --build . --config Release --target UxVCtrl && refreshenv.cmd && @echo wait 10 > run_test.txt && @echo exit >> run_test.txt && Release\UxVCtrl.exe < run_test.txt && copy Release\UxVCtrl.exe UxVCtrl_cv2413.exe
shell: cmd
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "UxVCtrl_cv2413.exe"
overwrite: true
tag_name: autotagname-${{ github.sha }}
if: github.event_name != 'pull_request'