Skip to content

Commit 0f7cabe

Browse files
Install mercurial via OS package manager (#645)
Installing mercurial via pip on Windows fails due to a missing dependency. But the chocolatey package works, so we'll be using that. In fact, we'll use OS-specific package managers on all platforms to install mercurial (like we already do for fossil).
1 parent c7b6645 commit 0f7cabe

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,35 +28,26 @@ jobs:
2828
git config --global column.ui always
2929
git config --global core.autocrlf false
3030
31-
- name: Install Python
32-
uses: actions/setup-python@v5
33-
34-
- name: Upgrade pip
35-
run: python -m pip install --upgrade pip
36-
37-
- name: Install Mercurial
38-
run: pip install mercurial
39-
4031
- name: Install Crystal
4132
uses: oprypin/install-crystal@v1
4233
with:
4334
crystal: ${{ matrix.crystal }}
4435

45-
- name: Install Fossil
36+
- name: Install Fossil and Mercurial
4637
if: ${{ runner.os == 'Linux' }}
4738
run: |
4839
sudo apt-get update
49-
sudo apt-get install fossil
40+
sudo apt-get install fossil mercurial
5041
51-
- name: Install Fossil
52-
if: ${{ matrix.os == 'macos-12' }}
42+
- name: Install Fossil and Mercurial
43+
if: ${{ runner.os == 'macOS' }}
5344
run: |
5445
brew update
55-
brew install fossil
46+
brew install fossil mercurial
5647
57-
- name: Install Fossil
58-
if: ${{ matrix.os == 'windows-2022' }}
59-
run: choco install fossil
48+
- name: Install Fossil and Mercurial
49+
if: ${{ runner.os == 'Windows' }}
50+
run: choco install fossil hg
6051

6152
- name: Download source
6253
uses: actions/checkout@v4

0 commit comments

Comments
 (0)