2021-04-21 02:33:16 -03:00
|
|
|
name: Cygwin Build
|
|
|
|
|
|
|
|
on: [push, pull_request, workflow_dispatch]
|
2021-06-23 04:42:11 -03:00
|
|
|
concurrency:
|
|
|
|
group: ci-${{github.workflow}}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
2021-04-21 02:33:16 -03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: 'windows-latest'
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
|
|
|
- name: Install cygwin
|
|
|
|
env:
|
|
|
|
HOME: ${{ runner.workspace }}/ardupilot
|
|
|
|
run: |
|
|
|
|
choco install cygwin --params "/InstallDir:C:\Cygwin /NoStartMenu /NoAdmin"
|
2021-05-12 07:32:32 -03:00
|
|
|
choco install cygwin32-gcc-g++ python37 python37-future python37-lxml python37-pip python37-setuptools python37-wheel git libexpat procps gettext --source cygwin
|
|
|
|
C:\Cygwin\bin\bash --login -c "ln -sf /usr/bin/python3.7 /usr/bin/python && ln -sf /usr/bin/pip3.7 /usr/bin/pip"
|
2021-10-26 04:11:40 -03:00
|
|
|
C:\Cygwin\bin\bash --login -c "python -m pip install empy pexpect"
|
2022-08-15 00:06:12 -03:00
|
|
|
C:\Cygwin\bin\bash --login -c "python -m pip install dronecan --upgrade"
|
2021-04-21 02:33:16 -03:00
|
|
|
- name: Build SITL
|
|
|
|
env:
|
|
|
|
HOME: ${{ runner.workspace }}/ardupilot
|
|
|
|
run: |
|
|
|
|
C:\Cygwin\bin\bash --login -c "Tools/scripts/cygwin_build.sh"
|
|
|
|
|
2022-03-08 17:42:17 -04:00
|
|
|
- name: Check build files
|
|
|
|
id: check_files
|
|
|
|
uses: andstor/file-existence-action@v1
|
|
|
|
with:
|
|
|
|
files: "artifacts/ArduPlane.elf.exe, artifacts/ArduCopter.elf.exe, artifacts/ArduHeli.elf.exe, artifacts/ArduRover.elf.exe, artifacts/ArduSub.elf.exe"
|
|
|
|
allow_failure: true
|
|
|
|
|
2021-04-21 02:33:16 -03:00
|
|
|
- name: Archive build
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: binaries
|
|
|
|
path: artifacts
|
|
|
|
retention-days: 7
|