Skip to content

Commit 75e0aa3

Browse files
authored
Merge pull request #47 from emacs-tree-sitter/ci
Fix CI issues caused by new LetsEncrypt root CA cert
2 parents e73eba6 + a3b911a commit 75e0aa3

File tree

4 files changed

+28
-9
lines changed

4 files changed

+28
-9
lines changed

.azure-pipelines/main.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,13 @@ jobs:
3232
vmImage: $(IMAGE_NAME)
3333
strategy:
3434
matrix:
35-
vs2017-win2016:
36-
IMAGE_NAME: 'vs2017-win2016'
35+
# XXX: Temporarily disabled due to outdated CA cert bundle. Maybe check
36+
# https://docs.certifytheweb.com/docs/kb/kb-202109-letsencrypt/
37+
# vs2017-win2016:
38+
# IMAGE_NAME: 'vs2017-win2016'
39+
# BUNDLE_TARGET: windows
40+
windows-2019:
41+
IMAGE_NAME: 'windows-2019'
3742
BUNDLE_TARGET: windows
3843
macos-10.14-emacs-27.1:
3944
IMAGE_NAME: 'macos-10.14'

.github/workflows/main.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,17 @@ jobs:
4747
if: runner.os != 'Windows'
4848
with:
4949
version: ${{ matrix.emacs-version }}
50-
- uses: jcs090218/setup-emacs-windows@v4
50+
# Seems like the Emacs archive from GNU's FTP uses its own outdated bundle of CA certs, which
51+
# wouldn't include the new LetsEncrypt's root CA cert, which is used by MELPA, among others.
52+
# So we use mingw64's Emacs instead. TODO: Switch back whenever possible.
53+
- name: Install Emacs (Windows)
5154
if: runner.os == 'Windows'
52-
with:
53-
version: ${{ matrix.emacs-version }}
55+
run: |
56+
$env:MSYS_PATH = "$env:CD\ci-tools\msys2"
57+
choco install msys2 --params="/InstallDir:$env:MSYS_PATH /NoPath"
58+
$env:PATH = "$env:MSYS_PATH\usr\bin;" + $env:PATH
59+
pacman -S --noconfirm --needed mingw-w64-x86_64-emacs
60+
echo "$env:MSYS_PATH\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf-8 -Append
5461
5562
- run: .github/script/setup-cask
5663
- run: cask install

.github/workflows/release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,17 @@ jobs:
3838
if: runner.os != 'Windows'
3939
with:
4040
version: ${{ matrix.emacs-version }}
41-
- uses: jcs090218/setup-emacs-windows@v4
41+
# Seems like the Emacs archive from GNU's FTP uses its own outdated bundle of CA certs, which
42+
# wouldn't include the new LetsEncrypt's root CA cert, which is used by MELPA, among others.
43+
# So we use mingw64's Emacs instead. TODO: Switch back whenever possible.
44+
- name: Install Emacs (Windows)
4245
if: runner.os == 'Windows'
43-
with:
44-
version: ${{ matrix.emacs-version }}
46+
run: |
47+
$env:MSYS_PATH = "$env:CD\ci-tools\msys2"
48+
choco install msys2 --params="/InstallDir:$env:MSYS_PATH /NoPath"
49+
$env:PATH = "$env:MSYS_PATH\usr\bin;" + $env:PATH
50+
pacman -S --noconfirm --needed mingw-w64-x86_64-emacs
51+
echo "$env:MSYS_PATH\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf-8 -Append
4552
4653
- run: .github/script/setup-cask
4754
- run: cask install

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
branch = master
7070
[submodule "repos/janet-simple"]
7171
path = repos/janet-simple
72-
url = https://codeberg.org/sogaiu/tree-sitter-janet-simple
72+
url = https://github.com/sogaiu/tree-sitter-janet-simple
7373
update = none
7474
ignore = dirty
7575
branch = master

0 commit comments

Comments
 (0)