ardupilot/.github/workflows/cygwin_build.yml

45 lines
1.4 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@v3
with:
submodules: 'recursive'
- uses: cygwin/cygwin-install-action@master
with:
packages: cygwin64 gcc-g++=10.2.0-1 python37 python37-future python37-lxml python37-pip python37-setuptools python37-wheel git procps gettext
- name: Prepare Python environment
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 --progress-bar off empy pexpect"
bash --login -c "python -m pip install --progress-bar off 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@v2
with:
files: "artifacts/*"
fail: true
- name: Archive build
uses: actions/upload-artifact@v3
with:
name: binaries
path: artifacts
retention-days: 7