Skip to content

Commit

Permalink
Build: Move to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendade authored and tridge committed Jul 27, 2021
1 parent fbe63d8 commit e4d278e
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 182 deletions.
70 changes: 0 additions & 70 deletions .azure/azure-pipelines.yml

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/windows_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
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.8]

steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install -U wheel
python -m pip install -U pywin32 lxml pymavlink numpy matplotlib==3.2.2 pyserial opencv-python PyYAML Pygame Pillow wxpython prompt-toolkit
python -m pip install -U pyinstaller==4.3 setuptools packaging
- name: Build MAVProxy
run: |
python setup.py build install
python -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/APMrover2/apm.pdef.xml', 'Parameters\Rover.xml')
$wc.DownloadFile('https://autotest.ardupilot.org/Parameters/ArduCopter/apm.pdef.xml', 'Parameters\ArduCopter.xml')
$wc.DownloadFile('https://autotest.ardupilot.org/Parameters/ArduPlane/apm.pdef.xml', 'Parameters\ArduPlane.xml')
$wc.DownloadFile('https://autotest.ardupilot.org/Parameters/ArduSub/apm.pdef.xml', 'Parameters\ArduSub.xml')
$wc.DownloadFile('https://autotest.ardupilot.org/Parameters/AntennaTracker/apm.pdef.xml', 'Parameters\AntennaTracker.xml')
$wc.DownloadFile('https://autotest.ardupilot.org/Rover-defaults.parm', 'Parameters\Rover-defaults.parm')
$wc.DownloadFile('https://autotest.ardupilot.org/Copter-defaults.parm', 'Parameters\ArduCopter-defaults.parm')
$wc.DownloadFile('https://autotest.ardupilot.org/Plane-defaults.parm', 'Parameters\ArduPlane-defaults.parm')
$wc.DownloadFile('https://autotest.ardupilot.org/Sub-defaults.parm', 'Parameters\ArduSub-defaults.parm')
- name: Build installer
run: |
cd windows
$env:VERSION=$(python returnVersion.py)
python returnVersion.py > version.txt
ISCC.exe /dMyAppVersion=$env:VERSION mavproxy.iss
ls Output
- name: Archive build
uses: actions/upload-artifact@v2
with:
name: MAVProxyInstaller
path: windows/Output
retention-days: 7
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[![MAVProxy status](https://ci.appveyor.com/api/projects/status/github/Ardupilot/MAVProxy?branch=master&svg=true)]( https://ci.appveyor.com/project/tridge/MAVProxy/history)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ArduPilot/MAVProxy?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

MAVProxy

Expand Down
105 changes: 0 additions & 105 deletions appveyor.yml

This file was deleted.

8 changes: 2 additions & 6 deletions windows/MAVProxyWinBuild.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ for /f "tokens=*" %%a in (
) do (
set VERSION=%%a
)

rem -----build the changelog-----
python.exe createChangelog.py


rem -----Upgrade pymavlink if needed-----
if exist "..\..\pymavlink" (
Expand Down Expand Up @@ -50,12 +46,12 @@ rem -----Create version Info-----
rem -----Download parameter files-----
cd ..\
mkdir Parameters
powershell.exe "Start-BitsTransfer -Source 'http://autotest.ardupilot.org/Parameters/APMrover2/apm.pdef.xml' -Destination 'Parameters\APMrover2.xml'"
powershell.exe "Start-BitsTransfer -Source 'http://autotest.ardupilot.org/Parameters/APMrover2/apm.pdef.xml' -Destination 'Parameters\Rover.xml'"
powershell.exe "Start-BitsTransfer -Source 'http://autotest.ardupilot.org/Parameters/ArduCopter/apm.pdef.xml' -Destination 'Parameters\ArduCopter.xml'"
powershell.exe "Start-BitsTransfer -Source 'http://autotest.ardupilot.org/Parameters/ArduPlane/apm.pdef.xml' -Destination 'Parameters\ArduPlane.xml'"
powershell.exe "Start-BitsTransfer -Source 'http://autotest.ardupilot.org/Parameters/ArduSub/apm.pdef.xml' -Destination 'Parameters\ArduSub.xml'"
powershell.exe "Start-BitsTransfer -Source 'http://autotest.ardupilot.org/Parameters/AntennaTracker/apm.pdef.xml' -Destination 'Parameters\AntennaTracker.xml'"
powershell.exe "Start-BitsTransfer -Source 'http://autotest.ardupilot.org/APMrover2-defaults.parm' -Destination 'Parameters\APMrover2-defaults.parm'"
powershell.exe "Start-BitsTransfer -Source 'http://autotest.ardupilot.org/APMrover2-defaults.parm' -Destination 'Parameters\Rover-defaults.parm'"
powershell.exe "Start-BitsTransfer -Source 'http://autotest.ardupilot.org/ArduCopter-defaults.parm' -Destination 'Parameters\ArduCopter-defaults.parm'"
powershell.exe "Start-BitsTransfer -Source 'http://autotest.ardupilot.org/ArduPlane-defaults.parm' -Destination 'Parameters\ArduPlane-defaults.parm'"
powershell.exe "Start-BitsTransfer -Source 'http://autotest.ardupilot.org/ArduSub-defaults.parm' -Destination 'Parameters\ArduSub-defaults.parm'"
Expand Down

0 comments on commit e4d278e

Please sign in to comment.