Skip to content

Commit

Permalink
cygwin-CI: use an action to install cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
ssiccha authored and ChrisJefferson committed Feb 19, 2021
1 parent 54022fa commit ad7cfb8
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions .github/workflows/cygwin-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,37 +29,8 @@ jobs:
git config --global core.eol lf
- uses: actions/checkout@v2
- name: Download cygwin
run: |
& cmd /c 'nslookup www.cygwin.com 2>&1'
while ($true)
{
try
{
(New-Object Net.WebClient).DownloadFile('http://www.cygwin.com/setup-x86_64.exe', 'setup-x86_64.exe')
break
}
catch
{
Write-Host "There is an error during package downloading:`n $_"
}
}
& cmd /c 'nslookup www.cygwin.com 8.8.8.8 2>&1'
shell: powershell
- name: Install cygwin
run: |
@ECHO ON
SET CYGROOT=C:\cygwin64
SET CYGCACHE=%CYGROOT%\var\cache\setup
setup-x86_64.exe -qnNdO -R %CYGROOT% -l %CYGCACHE% -s %CYGMIRROR% -P wget,git,gcc,gcc-g++,gcc-core,m4,libgmp-devel,make,automake,libtool,autoconf,autoconf2.5,zlib-devel,libreadline-devel
env:
CYGMIRROR: "http://mirror.easyname.at/cygwin"
shell: cmd

- name: Set up cygwin profile
run: |
C:\cygwin64\bin\bash -l -c bash
shell: cmd
- uses: gap-actions/setup-cygwin-for-gap@v1

# CHERE_INVOKING=1 lets us start a 'login shell' (to set paths) without changing directory
- name: Compile GAP and download packages
Expand Down

0 comments on commit ad7cfb8

Please sign in to comment.