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'
|
2022-10-29 18:55:15 -03:00
|
|
|
- uses: cygwin/cygwin-install-action@master
|
|
|
|
with:
|
2022-12-07 04:07:51 -04:00
|
|
|
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
|
2021-04-21 02:33:16 -03:00
|
|
|
env:
|
|
|
|
HOME: ${{ runner.workspace }}/ardupilot
|
|
|
|
run: |
|
2022-10-29 18:55:15 -03:00
|
|
|
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"
|
2021-04-21 02:33:16 -03:00
|
|
|
- name: Build SITL
|
|
|
|
env:
|
|
|
|
HOME: ${{ runner.workspace }}/ardupilot
|
|
|
|
run: |
|
2022-10-29 18:55:15 -03:00
|
|
|
bash --login -c "Tools/scripts/cygwin_build.sh"
|
2021-04-21 02:33:16 -03:00
|
|
|
|
2022-03-08 17:42:17 -04:00
|
|
|
- name: Check build files
|
|
|
|
id: check_files
|
|
|
|
uses: andstor/file-existence-action@v1
|
|
|
|
with:
|
2022-12-07 04:07:51 -04:00
|
|
|
files: "artifacts/*"
|
2022-03-08 17:42:17 -04:00
|
|
|
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
|