@@ -45,21 +45,19 @@ jobs:
4545 if : runner.os != 'Windows'
4646 with :
4747 version : ${{ matrix.emacs-version }}
48- # Seems like the Emacs archive from GNU's FTP uses its own outdated bundle of CA certs, which
49- # wouldn't include the new LetsEncrypt's root CA cert, which is used by MELPA, among others.
50- # So we use mingw64's Emacs instead. TODO: Switch back whenever possible.
51- - name : Install Emacs (Windows)
48+
49+ - uses : jcs090218/setup-emacs-windows@6e1ba035e1387639a42f4ef4872598c88481c863
5250 if : runner.os == 'Windows'
51+ with :
52+ version : ${{ matrix.emacs-version }}
53+ # Remove expired DST Root CA X3 certificate. Workaround for
54+ # https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51038 bug on Emacs 27.2.
55+ # https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-1126671598
56+ - name : Workaround for Emacs 27.2's Windows build from GNU FTP
57+ if : ${{ runner.os == 'Windows' && matrix.emacs-version == '27.2' }}
5358 run : |
54- $env:MSYS_PATH = "$env:CD\ci-tools\msys2"
55- choco install msys2 --params="/InstallDir:$env:MSYS_PATH /NoPath"
56- $env:PATH = "$env:MSYS_PATH\usr\bin;" + $env:PATH
57- pacman -S --noconfirm --needed mingw-w64-x86_64-emacs
58- echo "$env:MSYS_PATH\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf-8 -Append
59- # - uses: jcs090218/setup-emacs-windows@v4
60- # if: runner.os == 'Windows'
61- # with:
62- # version: ${{ matrix.emacs-version }}
59+ gci cert:\LocalMachine\Root\DAC9024F54D8F6DF94935FB1732638CA6AD77C13
60+ gci cert:\LocalMachine\Root\DAC9024F54D8F6DF94935FB1732638CA6AD77C13 | Remove-Item
6361
6462 - uses : actions/checkout@v2
6563 with :
@@ -148,10 +146,19 @@ jobs:
148146 if : runner.os != 'Windows'
149147 with :
150148 version : ${{ matrix.emacs-version }}
151- - uses : jcs090218/setup-emacs-windows@v4
149+
150+ - uses : jcs090218/setup-emacs-windows@6e1ba035e1387639a42f4ef4872598c88481c863
152151 if : runner.os == 'Windows'
153152 with :
154153 version : ${{ matrix.emacs-version }}
154+ # Remove expired DST Root CA X3 certificate. Workaround for
155+ # https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51038 bug on Emacs 27.2.
156+ # https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-1126671598
157+ - name : Workaround for Emacs 27.2's Windows build from GNU FTP
158+ if : ${{ runner.os == 'Windows' && matrix.emacs-version == '27.2' }}
159+ run : |
160+ gci cert:\LocalMachine\Root\DAC9024F54D8F6DF94935FB1732638CA6AD77C13
161+ gci cert:\LocalMachine\Root\DAC9024F54D8F6DF94935FB1732638CA6AD77C13 | Remove-Item
155162
156163 - uses : actions/checkout@v2
157164
0 commit comments