Skip to content

Commit

Permalink
Install mercurial via OS package manager (#645)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
straight-shoota authored Oct 7, 2024
1 parent c7b6645 commit 0f7cabe
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,35 +28,26 @@ jobs:
git config --global column.ui always
git config --global core.autocrlf false
- name: Install Python
uses: actions/setup-python@v5

- name: Upgrade pip
run: python -m pip install --upgrade pip

- name: Install Mercurial
run: pip install mercurial

- name: Install Crystal
uses: oprypin/install-crystal@v1
with:
crystal: ${{ matrix.crystal }}

- name: Install Fossil
- name: Install Fossil and Mercurial
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt-get update
sudo apt-get install fossil
sudo apt-get install fossil mercurial
- name: Install Fossil
if: ${{ matrix.os == 'macos-12' }}
- name: Install Fossil and Mercurial
if: ${{ runner.os == 'macOS' }}
run: |
brew update
brew install fossil
brew install fossil mercurial
- name: Install Fossil
if: ${{ matrix.os == 'windows-2022' }}
run: choco install fossil
- name: Install Fossil and Mercurial
if: ${{ runner.os == 'Windows' }}
run: choco install fossil hg

- name: Download source
uses: actions/checkout@v4
Expand Down

0 comments on commit 0f7cabe

Please sign in to comment.