Skip to content

Commit

Permalink
.github: stop using choco to install cygwin packages
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
peterbarker authored and tridge committed Oct 31, 2022
1 parent dcaea69 commit 098ed89
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/cygwin_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,21 @@ jobs:
- 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: |
choco install cygwin --params "/InstallDir:C:\Cygwin /NoStartMenu /NoAdmin"
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"
C:\Cygwin\bin\bash --login -c "python -m pip install empy pexpect"
C:\Cygwin\bin\bash --login -c "python -m pip install dronecan --upgrade"
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: |
C:\Cygwin\bin\bash --login -c "Tools/scripts/cygwin_build.sh"
bash --login -c "Tools/scripts/cygwin_build.sh"
- name: Check build files
id: check_files
Expand Down

0 comments on commit 098ed89

Please sign in to comment.