Skip to content

Commit 4344494

Browse files
committed
GitHubAtions: choco install -y --source cygwin is broken since chocolatey v1.2.0, so we change to the offical way to install cygwin packages
Signed-off-by: leleliu008 <[email protected]>
1 parent d8f5c06 commit 4344494

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/testing-cygwin.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ jobs:
1515
shell: C:\tools\cygwin\bin\bash.exe -l -i {0}
1616

1717
steps:
18-
- run: choco install -y --source cygwin gcc-g++ make automake autoconf pkg-config dos2unix libiconv-devel libjansson-devel libxml2-devel libyaml-devel
18+
# https://www.cygwin.com/faq/faq.html#faq.setup.cli
19+
- run: Invoke-WebRequest -OutFile setup-x86_64.exe "http://cygwin.com/setup-x86_64.exe"
1920
shell: pwsh
20-
21+
22+
- run: .\setup-x86_64.exe --quiet-mode --no-desktop --no-shortcuts --no-startmenu --only-site --site http://mirrors.kernel.org/sourceware/cygwin/ --root C:\tools\cygwin --local-package-dir C:\tools\cygwin\packages --packages gcc-g++,make,automake,autoconf,pkg-config,dos2unix,libiconv-devel,libjansson-devel,libxml2-devel,libyaml-devel | Out-Default
23+
shell: pwsh
24+
2125
- run: git config --global core.autocrlf input
2226
shell: bash
2327

24-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v3
2529

2630
- run: printf 'cd %s' "$(cygpath '${{ github.workspace }}')" >> ~/.bashrc
2731

0 commit comments

Comments
 (0)