Updated Roboteq and RoboteqInterface #112
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: '**' | |
tags: '' # Restrict to blank tags | |
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@v1 | |
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@v3 | |
- 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 11.2.0 x64 | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
# - 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@v3 | |
- 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@v3 | |
- 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 | |
# Compatibility configurations | |
j5: | |
name: Windows Visual Studio 2022 x86 static with OpenCV 4.5.4 without SBG SDK, RPLIDAR SDK, BlueView, Kinect v2 support | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
(New-Object System.Net.WebClient).DownloadFile("http://www.ensta-bretagne.fr/lebars/Share/windows_extra_tools.zip", "C:\Windows\Temp\windows_extra_tools.zip") | |
7z x C:\Windows\Temp\windows_extra_tools.zip -o"C:\Windows" -y | |
shell: pwsh | |
- run: | | |
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.5.4.20230429 --params "'/url:https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.5.4.20220805/libopencv-dev.4.5.4_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=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 22.04 amd64 static without OpenCV, libmodbus, SBG SDK, RPLIDAR SDK, BlueView, Kinect v2 support | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- 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 | xvfb-run -a ./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' | |
j7: | |
name: Ubuntu 20.04 amd64 static without OpenCV, libmodbus, SBG SDK, RPLIDAR SDK, BlueView, Kinect v2 support | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- 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 | xvfb-run -a ./UxVCtrl && cp ./UxVCtrl ./UxVCtrl_compat_ubuntu_focal | |
- uses: xresloader/upload-to-github-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
file: "UxVCtrl_compat_ubuntu_focal" | |
overwrite: true | |
tag_name: autotagname-${{ github.sha }} | |
if: github.event_name != 'pull_request' | |
j8: | |
name: Raspbian Buster pi Docker static without OpenCV, libmodbus, SBG SDK, RPLIDAR SDK, BlueView, Kinect v2 support | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: docker run --rm --privileged multiarch/qemu-user-static:register --reset | |
- run: docker run -i -v "${PWD}/..:${PWD}/.." lebarsfa/pi:buster /bin/bash -c "uname -a && cat /etc/os-release && cd ${PWD} && apt-get -q update --allow-releaseinfo-change ; apt-get -y install sudo lsb-release wget unzip && 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_buster_pi" | |
- uses: xresloader/upload-to-github-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
file: "UxVCtrl_compat_buster_pi" | |
overwrite: true | |
tag_name: autotagname-${{ github.sha }} | |
if: github.event_name != 'pull_request' | |
j9: | |
name: macOS Monterey static without OpenCV, libmodbus, SBG SDK, RPLIDAR SDK, BlueView, Kinect v2 support | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v3 | |
- 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_monterey | |
- uses: xresloader/upload-to-github-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
file: "UxVCtrl_compat_macos_monterey" | |
overwrite: true | |
tag_name: autotagname-${{ github.sha }} | |
if: github.event_name != 'pull_request' | |
# Full configurations | |
j10: | |
name: Windows Visual Studio 2022 x64 static with OpenCV 4.5.4 without BlueView support | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
(New-Object System.Net.WebClient).DownloadFile("http://www.ensta-bretagne.fr/lebars/Share/windows_extra_tools.zip", "C:\Windows\Temp\windows_extra_tools.zip") | |
7z x C:\Windows\Temp\windows_extra_tools.zip -o"C:\Windows" -y | |
shell: pwsh | |
- run: | | |
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.5.4.20230429 --params "'/url:https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.5.4.20220805/libopencv-dev.4.5.4_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=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 & set & 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' | |
j11: | |
name: Windows Visual Studio 2022 x86 static with OpenCV 4.5.4 | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
(New-Object System.Net.WebClient).DownloadFile("http://www.ensta-bretagne.fr/lebars/Share/windows_extra_tools.zip", "C:\Windows\Temp\windows_extra_tools.zip") | |
7z x C:\Windows\Temp\windows_extra_tools.zip -o"C:\Windows" -y | |
shell: pwsh | |
- run: | | |
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.5.4.20230429 --params "'/url:https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.5.4.20220805/libopencv-dev.4.5.4_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=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 & set & 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' | |
j12: | |
name: Windows MinGW 11.2.0 x64 with OpenCV 4.5.4 without SBG SDK, RPLIDAR SDK, BlueView support | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
(New-Object System.Net.WebClient).DownloadFile("http://www.ensta-bretagne.fr/lebars/Share/windows_extra_tools.zip", "C:\Windows\Temp\windows_extra_tools.zip") | |
7z x C:\Windows\Temp\windows_extra_tools.zip -o"C:\Windows" -y | |
shell: pwsh | |
- run: | | |
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.5.4.20230429 | |
rem PATH | |
rem mingw v11.2.0 Chocolatey package might not set this... | |
%SystemDrive%\cmake_extra_tools\pathman /as C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin & cd. & rem Non-zero exit code...? | |
shell: cmd | |
- run: refreshenv.cmd && 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=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 && @echo wait 10 > run_test.txt && @echo exit >> run_test.txt && UxVCtrl.exe < run_test.txt & set & copy UxVCtrl.exe UxVCtrl_mingw11_x64.exe | |
shell: cmd | |
- uses: xresloader/upload-to-github-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
file: "UxVCtrl_mingw11_x64.exe" | |
overwrite: true | |
tag_name: autotagname-${{ github.sha }} | |
if: github.event_name != 'pull_request' | |
j13: | |
name: Windows MinGW 11.2.0 x86 with OpenCV 4.5.4 without SBG SDK, RPLIDAR SDK support | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
(New-Object System.Net.WebClient).DownloadFile("http://www.ensta-bretagne.fr/lebars/Share/windows_extra_tools.zip", "C:\Windows\Temp\windows_extra_tools.zip") | |
7z x C:\Windows\Temp\windows_extra_tools.zip -o"C:\Windows" -y | |
shell: pwsh | |
- run: | | |
rem choco uninstall -y -r --no-progress mingw --force | |
choco upgrade -y -r --no-progress mingw --version=11.2.0.07112021 --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.5.4.20230429 --x86 | |
rem mingw v11.2.0.07112021 Chocolatey package correctly sets this... | |
rem %SystemDrive%\cmake_extra_tools\pathman /as C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw32\bin & cd. & rem Non-zero exit code...? | |
shell: cmd | |
- run: refreshenv.cmd && set PATH=C:\ProgramData\chocolatey\lib\mingw\tools\install\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=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 && @echo wait 10 > run_test.txt && @echo exit >> run_test.txt && UxVCtrl.exe < run_test.txt & set & copy UxVCtrl.exe UxVCtrl_mingw11_x86.exe | |
shell: cmd | |
- uses: xresloader/upload-to-github-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
file: "UxVCtrl_mingw11_x86.exe" | |
overwrite: true | |
tag_name: autotagname-${{ github.sha }} | |
if: github.event_name != 'pull_request' | |
j14: | |
name: Ubuntu 22.04 amd64 with default OpenCV 4.5.4 | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- 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' | |
j15: | |
name: Ubuntu 20.04 amd64 with default OpenCV 4.2.0 | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- 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_focal | |
- uses: xresloader/upload-to-github-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
file: "UxVCtrl_ubuntu_focal" | |
overwrite: true | |
tag_name: autotagname-${{ github.sha }} | |
if: github.event_name != 'pull_request' | |
j16: | |
name: Raspbian Buster pi Docker static with OpenCV 4.2.0 without SBG SDK, RPLIDAR SDK, BlueView, Kinect v2 support | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: docker run --rm --privileged multiarch/qemu-user-static:register --reset | |
- run: docker run -i -v "${PWD}/..:${PWD}/.." lebarsfa/pi:buster /bin/bash -c "uname -a && cat /etc/os-release && cd ${PWD} && apt-get -q update --allow-releaseinfo-change ; 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_buster_pi" | |
- uses: xresloader/upload-to-github-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
file: "UxVCtrl_buster_pi" | |
overwrite: true | |
tag_name: autotagname-${{ github.sha }} | |
if: github.event_name != 'pull_request' | |
j17: | |
name: macOS Monterey with latest OpenCV without BlueView, Kinect v2 support | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v3 | |
- 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_monterey | |
- uses: xresloader/upload-to-github-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
file: "UxVCtrl_macos_monterey" | |
overwrite: true | |
tag_name: autotagname-${{ github.sha }} | |
if: github.event_name != 'pull_request' | |
# Alternate configurations | |
j18: | |
name: Ubuntu 16.04 xenial i386 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: docker run -i -v "${PWD}/..:${PWD}/.." i386/ubuntu:xenial /bin/bash -c "linux32 --32bit i386 uname -a && cat /etc/os-release && cd ${PWD} && apt-get -q update ; apt-get -y install sudo lsb-release wget unzip build-essential cmake && 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_ubuntu_xenial_i386" | |
- uses: xresloader/upload-to-github-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
file: "UxVCtrl_compat_ubuntu_xenial_i386" | |
overwrite: true | |
tag_name: autotagname-${{ github.sha }} | |
if: github.event_name != 'pull_request' | |
j19: | |
name: Windows Visual Studio 2022 x86 static with OpenCV 4.5.4 without SBG SDK, RPLIDAR SDK support | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
(New-Object System.Net.WebClient).DownloadFile("http://www.ensta-bretagne.fr/lebars/Share/windows_extra_tools.zip", "C:\Windows\Temp\windows_extra_tools.zip") | |
7z x C:\Windows\Temp\windows_extra_tools.zip -o"C:\Windows" -y | |
shell: pwsh | |
- run: | | |
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.5.4.20230429 --params "'/url:https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.5.4.20220805/libopencv-dev.4.5.4_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=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 & set & 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' | |
j20: | |
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@v3 | |
- run: | | |
(New-Object System.Net.WebClient).DownloadFile("http://www.ensta-bretagne.fr/lebars/Share/windows_extra_tools.zip", "C:\Windows\Temp\windows_extra_tools.zip") | |
7z x C:\Windows\Temp\windows_extra_tools.zip -o"C:\Windows" -y | |
shell: pwsh | |
- run: | | |
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" -A Win32 -T v141 -D ENABLE_STATIC=ON -D DISABLE_OPENCV_SUPPORT=OFF -D OPENCV2413=OFF -D OPENCV320=ON -D OPENCV420=OFF -D OPENCV454=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 & set & 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' | |
j21: | |
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@v3 | |
- run: | | |
(New-Object System.Net.WebClient).DownloadFile("http://www.ensta-bretagne.fr/lebars/Share/windows_extra_tools.zip", "C:\Windows\Temp\windows_extra_tools.zip") | |
7z x C:\Windows\Temp\windows_extra_tools.zip -o"C:\Windows" -y | |
shell: pwsh | |
- run: | | |
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" -A Win32 -T v142 -D ENABLE_STATIC=ON -D DISABLE_OPENCV_SUPPORT=OFF -D OPENCV2413=ON -D OPENCV320=OFF -D OPENCV420=OFF -D OPENCV454=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 & set & 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' |