ardupilot/.github/workflows/cygwin_build.yml
Peter Barker 098ed891a2 .github: stop using choco to install cygwin packages
Instead use a github action to install cygwin and the packages we require.

chocolately's cygwin integration appears to have broken - installing cygwin directly using a convenient github action seems preferable than putting up with further breakage past this one.
2022-10-31 17:03:15 +11:00

45 lines
1.5 KiB
YAML

name: Cygwin Build
on: [push, pull_request, workflow_dispatch]
concurrency:
group: ci-${{github.workflow}}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: 'windows-latest'
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- uses: cygwin/cygwin-install-action@master
with:
packages: install cygwin32-gcc-g++ python37 python37-future python37-lxml python37-pip python37-setuptools python37-wheel git libexpat procps gettext
- name: Install cygwin
env:
HOME: ${{ runner.workspace }}/ardupilot
run: |
bash --login -c "ln -sf /usr/bin/python3.7 /usr/bin/python && ln -sf /usr/bin/pip3.7 /usr/bin/pip"
bash --login -c "python -m pip install empy pexpect"
bash --login -c "python -m pip install dronecan --upgrade"
- name: Build SITL
env:
HOME: ${{ runner.workspace }}/ardupilot
run: |
bash --login -c "Tools/scripts/cygwin_build.sh"
- 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
- name: Archive build
uses: actions/upload-artifact@v2
with:
name: binaries
path: artifacts
retention-days: 7