mavproxy_param: add support for PARAM_ERROR message #358
This file contains hidden or 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
| name: Windows Build | |
| on: [push, pull_request, workflow_dispatch] | |
| concurrency: | |
| group: ci-${{github.workflow}}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: 'windows-latest' | |
| strategy: | |
| matrix: | |
| python-version: ['3.10'] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: 'recursive' | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python3 -m pip install -U wheel setuptools pip | |
| python3 -m pip install -U pywin32 lxml pymavlink numpy matplotlib pyserial opencv-python PyYAML Pygame Pillow wxpython prompt-toolkit scipy | |
| python3 -m pip install -U openai pyaudio | |
| python3 -m pip install -U pyinstaller==6.7.0 packaging | |
| - name: Download Inno Setup installer | |
| run: curl -L -o installer.exe http://files.jrsoftware.org/is/6/innosetup-6.3.1.exe | |
| - name: Install Inno Setup | |
| run: ./installer.exe /verysilent /allusers /dir=inst | |
| - name: Build MAVProxy | |
| run: | | |
| python3 -m pip install .[recommended] --user | |
| python3 -m pip list | |
| - name: Prepare installer | |
| run: | | |
| cd MAVProxy | |
| copy ..\\windows\\mavproxy.spec | |
| pyinstaller --clean mavproxy.spec | |
| del mavproxy.spec | |
| - name: Download parameters | |
| run: | | |
| mkdir Parameters | |
| $wc = New-Object System.Net.WebClient | |
| $wc.DownloadFile('https://autotest.ardupilot.org/Parameters/Rover/apm.pdef.xml', 'Parameters\Rover.xml') | |
| $wc.DownloadFile('https://autotest.ardupilot.org/Parameters/Copter/apm.pdef.xml', 'Parameters\Copter.xml') | |
| $wc.DownloadFile('https://autotest.ardupilot.org/Parameters/Plane/apm.pdef.xml', 'Parameters\Plane.xml') | |
| $wc.DownloadFile('https://autotest.ardupilot.org/Parameters/Sub/apm.pdef.xml', 'Parameters\Sub.xml') | |
| $wc.DownloadFile('https://autotest.ardupilot.org/Parameters/AntennaTracker/apm.pdef.xml', 'Parameters\AntennaTracker.xml') | |
| $wc.DownloadFile('https://autotest.ardupilot.org/Parameters/Heli/apm.pdef.xml', 'Parameters\Heli.xml') | |
| $wc.DownloadFile('https://autotest.ardupilot.org/Parameters/Blimp/apm.pdef.xml', 'Parameters\Blimp.xml') | |
| - name: Build installer | |
| run: | | |
| cd windows | |
| $env:VERSION=$(python returnVersion.py) | |
| python3 returnVersion.py > version.txt | |
| ISCC.exe /dMyAppVersion=$env:VERSION mavproxy.iss | |
| ls Output | |
| - name: Archive build | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: MAVProxyInstaller | |
| path: windows/Output | |
| retention-days: 7 | |
| - name: Pre Release | |
| uses: "softprops/action-gh-release@v2" | |
| if: github.ref == 'refs/heads/master' | |
| with: | |
| prerelease: true | |
| name: "Development Build" | |
| tag_name: "latest" | |
| files: windows/Output/*.* | |
| token: "${{ secrets.GITHUB_TOKEN }}" | |
| - name: Release | |
| uses: "softprops/action-gh-release@v2" | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| with: | |
| prerelease: false | |
| files: windows/Output/*.* | |
| token: "${{ secrets.GITHUB_TOKEN }}" |